README
xlab-cli
Just a tiny command line interface for gitlab API
Usage
$ npm install -g xlab-cli
$ xlab-cli COMMAND
running command...
$ xlab-cli (-v|--version|version)
xlab-cli/1.0.0-alpha linux-x64 node-v10.14.2
$ xlab-cli --help [COMMAND]
USAGE
$ xlab-cli COMMAND
...
Commands
xlab-cli autocomplete [SHELL]
xlab-cli configure
xlab-cli help [COMMAND]
xlab-cli mr:delete ID
xlab-cli mr:list
xlab-cli mr:open
xlab-cli mr:state ID STATE
xlab-cli autocomplete [SHELL]
display autocomplete installation instructions
USAGE
$ xlab-cli autocomplete [SHELL]
ARGUMENTS
SHELL shell type
OPTIONS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
EXAMPLES
$ xlab-cli autocomplete
$ xlab-cli autocomplete bash
$ xlab-cli autocomplete zsh
$ xlab-cli autocomplete --refresh-cache
See code: @oclif/plugin-autocomplete
xlab-cli configure
Configure xlab-cli
USAGE
$ xlab-cli configure
OPTIONS
-h, --help show CLI help
--prompt
See code: src/commands/configure.ts
xlab-cli help [COMMAND]
display help for xlab-cli
USAGE
$ xlab-cli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
xlab-cli mr:delete ID
USAGE
$ xlab-cli mr:delete ID
OPTIONS
-h, --help show CLI help
See code: src/commands/mr/delete.ts
xlab-cli mr:list
list merge requests, shows open MRs by default
USAGE
$ xlab-cli mr:list
OPTIONS
-h, --help show CLI help
-s, --state=state [default: open]
See code: src/commands/mr/list.ts
xlab-cli mr:open
Open new merge request
USAGE
$ xlab-cli mr:open
OPTIONS
-a, --assignee=assignee Assignee
-c, --title=title MR title. defaults to the last commit message if none is provided
-d, --description=description Description
-h, --help show CLI help
-s, --source=source Source branch. defaults to your current branch if none is provided
-t, --target=target (required) [default: DEV] Target branch. defaults to DEV if none is provided
-w, --assign list assignees
See code: src/commands/mr/open.ts
xlab-cli mr:state ID STATE
USAGE
$ xlab-cli mr:state ID STATE
ARGUMENTS
ID MR id
STATE State of MR close/reopen
OPTIONS
-h, --help show CLI help
See code: src/commands/mr/state.ts