mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
Merge pull request #73 from tiktok/feat-no-profile-help
Feat no profile help
This commit is contained in:
commit
804fab0f7f
4 changed files with 48 additions and 9 deletions
|
@ -70,10 +70,23 @@ export class CheckoutCommand implements ICommand<ICheckoutCommandOptions> {
|
||||||
description:
|
description:
|
||||||
'Create a new branch and start it at <start-point>; if it already exists, reset it to <start-point>'
|
'Create a new branch and start it at <start-point>; if it already exists, reset it to <start-point>'
|
||||||
})
|
})
|
||||||
.array('profile')
|
.option('profile', {
|
||||||
.default('profile', [])
|
describe:
|
||||||
.array('add-profile')
|
'Checkout projects by specified profile(s). The profiles will be recorded and reused by other sparo commands. For example, running "sparo checkout <branch>" sparse checkout based on the reused profiles after running "git checkout"',
|
||||||
.default('add-profile', [])
|
default: [],
|
||||||
|
type: 'array'
|
||||||
|
})
|
||||||
|
.option('add-profile', {
|
||||||
|
describe:
|
||||||
|
'Checkout projects with recorded profile(s) and the specified added profile(s). Adds the specified added profile(s) to sparo recorded profiles',
|
||||||
|
default: [],
|
||||||
|
type: 'array'
|
||||||
|
})
|
||||||
|
.option('no-profile', {
|
||||||
|
hidden: false,
|
||||||
|
describe: 'Checkout projects without any profiles and clear all recorded profiles',
|
||||||
|
type: 'boolean'
|
||||||
|
})
|
||||||
.option('to', {
|
.option('to', {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
default: [],
|
default: [],
|
||||||
|
|
|
@ -14,12 +14,20 @@ Positionals:
|
||||||
start-point [string]
|
start-point [string]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help Show help [boolean]
|
--help Show help [boolean]
|
||||||
-b Create a new branch and start it at <start-point> [boolean]
|
-b Create a new branch and start it at <start-point> [boolean]
|
||||||
-B Create a new branch and start it at <start-point>; if it
|
-B Create a new branch and start it at <start-point>; if it
|
||||||
already exists, reset it to <start-point> [boolean]
|
already exists, reset it to <start-point> [boolean]
|
||||||
--profile [array] [default: []]
|
--profile Checkout projects by specified profile(s). The profiles
|
||||||
--add-profile [array] [default: []]
|
will be recorded and reused by other sparo commands. For
|
||||||
|
example, running "sparo checkout <branch>" sparse checkout
|
||||||
|
based on the reused profiles after running "git checkout"
|
||||||
|
[array] [default: []]
|
||||||
|
--add-profile Checkout projects with recorded profile(s) and the
|
||||||
|
specified added profile(s). Adds the specified added
|
||||||
|
profile(s) to sparo recorded profiles [array] [default: []]
|
||||||
|
--no-profile Checkout projects without any profiles and clear all
|
||||||
|
recorded profiles [boolean]
|
||||||
--to Checkout projects up to (and including) project <to..>, can
|
--to Checkout projects up to (and including) project <to..>, can
|
||||||
be used together with option --profile/--add-profile to
|
be used together with option --profile/--add-profile to
|
||||||
form a union selection of the two options. The projects
|
form a union selection of the two options. The projects
|
||||||
|
|
|
@ -19,6 +19,16 @@ Options:
|
||||||
-b Create a new branch and start it at <start-point> [boolean]
|
-b Create a new branch and start it at <start-point> [boolean]
|
||||||
-B Create a new branch and start it at <start-point>; if it
|
-B Create a new branch and start it at <start-point>; if it
|
||||||
already exists, reset it to <start-point> [boolean]
|
already exists, reset it to <start-point> [boolean]
|
||||||
|
--profile Checkout projects by specified profile(s). The profiles
|
||||||
|
will be recorded and reused by other sparo commands. For
|
||||||
|
example, running "sparo checkout <branch>" sparse checkout
|
||||||
|
based on the reused profiles after running "git checkout"
|
||||||
|
[array] [default: []]
|
||||||
|
--add-profile Checkout projects with recorded profile(s) and the
|
||||||
|
specified added profile(s). Adds the specified added
|
||||||
|
profile(s) to sparo recorded profiles [array] [default: []]
|
||||||
|
--no-profile Checkout projects without any profiles and clear all
|
||||||
|
recorded profiles [boolean]
|
||||||
--to Checkout projects up to (and including) project <to..>, can
|
--to Checkout projects up to (and including) project <to..>, can
|
||||||
be used together with option --profile/--add-profile to
|
be used together with option --profile/--add-profile to
|
||||||
form a union selection of the two options. The projects
|
form a union selection of the two options. The projects
|
||||||
|
@ -30,5 +40,3 @@ Options:
|
||||||
union selection of the two options. The projects selectors
|
union selection of the two options. The projects selectors
|
||||||
here will never replace what have been checked out by
|
here will never replace what have been checked out by
|
||||||
profiles [array] [default: []]
|
profiles [array] [default: []]
|
||||||
--profile [array] [default: []]
|
|
||||||
--add-profile [array] [default: []]
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"packageName": "sparo",
|
||||||
|
"comment": "Improve \"sparo checkout\" help text for \"--profile\", \"--add-profile\" and \"--no-profile\" paramters",
|
||||||
|
"type": "none"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"packageName": "sparo"
|
||||||
|
}
|
Loading…
Reference in a new issue