Skip to content

Commit eb6988f

Browse files
Fix/merge conflits (#1662)
* Fixed merge conflits * Fixed merge conflits * resolved conflits * Resolved merge conflits * updated readme file
1 parent edbdc62 commit eb6988f

File tree

43 files changed

+1387
-1039
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1387
-1039
lines changed

package-lock.json

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-auth/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ USAGE
4949
$ csdx auth:login [-u <value> | --oauth] [-p <value> | ]
5050
5151
FLAGS
52-
-p, --password=<value> Password
53-
-u, --username=<value> User name
52+
-p, --password=<value> Password of your Contentstack app
53+
-u, --username=<value> Email address of your Contentstack account.
5454
--oauth Enables single sign-on (SSO) in Contentstack CLI
5555
5656
DESCRIPTION
@@ -141,7 +141,7 @@ USAGE
141141
$ csdx auth:tokens:add [-a <value>] [--delivery] [--management] [-e <value>] [-k <value>] [-y] [--token <value>]
142142
143143
FLAGS
144-
-a, --alias=<value> Name of the token alias
144+
-a, --alias=<value> Alias (name) you want to assign to the token
145145
-d, --delivery Set this flag to save delivery token
146146
-e, --environment=<value> Environment name for delivery token
147147
-k, --stack-api-key=<value> Stack API Key
@@ -187,8 +187,8 @@ USAGE
187187
$ csdx auth:tokens:remove [-a <value>] [-i]
188188
189189
FLAGS
190-
-a, --alias=<value> Token alias
191-
-i, --ignore Ignore
190+
-a, --alias=<value> Alias (name) of the token to delete.
191+
-i, --ignore Ignores if the token is not present.
192192
193193
DESCRIPTION
194194
Removes selected tokens
@@ -230,8 +230,8 @@ USAGE
230230
$ csdx login [-u <value> | --oauth] [-p <value> | ]
231231
232232
FLAGS
233-
-p, --password=<value> Password
234-
-u, --username=<value> User name
233+
-p, --password=<value> Password of your Contentstack app
234+
-u, --username=<value> Email address of your Contentstack account.
235235
--oauth Enables single sign-on (SSO) in Contentstack CLI
236236
237237
DESCRIPTION

packages/contentstack-auth/src/commands/auth/login.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export default class LoginCommand extends BaseCommand<typeof LoginCommand> {
2727
static flags: FlagInput = {
2828
username: flags.string({
2929
char: 'u',
30-
description: 'User name',
30+
description: 'Email address of your Contentstack account.',
3131
multiple: false,
3232
required: false,
3333
exclusive: ['oauth'],
3434
}),
3535
password: flags.string({
3636
char: 'p',
37-
description: 'Password',
37+
description: 'Password of your Contentstack app',
3838
multiple: false,
3939
required: false,
4040
exclusive: ['oauth'],

packages/contentstack-auth/src/commands/auth/tokens/add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class TokensAddCommand extends BaseCommand<typeof TokensAddComman
3030
];
3131

3232
static flags: FlagInput = {
33-
alias: Flags.string({ char: 'a', description: 'Name of the token alias' }),
33+
alias: Flags.string({ char: 'a', description: 'Alias (name) you want to assign to the token' }),
3434
delivery: flags.boolean({
3535
char: 'd',
3636
description: 'Set this flag to save delivery token',

packages/contentstack-auth/src/commands/auth/tokens/remove.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default class TokensRemoveCommand extends BaseCommand<typeof TokensRemove
66
static description = 'Removes selected tokens';
77
static examples = ['$ csdx auth:tokens:remove', '$ csdx auth:tokens:remove -a <alias>'];
88
static flags: FlagInput = {
9-
alias: flags.string({ char: 'a', description: 'Token alias' }),
10-
ignore: flags.boolean({ char: 'i', description: 'Ignore' }),
9+
alias: flags.string({ char: 'a', description: 'Alias (name) of the token to delete.' }),
10+
ignore: flags.boolean({ char: 'i', description: 'Ignores if the token is not present.' }),
1111
};
1212

1313
async run(): Promise<any> {

packages/contentstack-branches/README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ USAGE
6363
$ csdx cm:branches
6464
6565
FLAGS
66-
-k, --stack-api-key=<value> Stack API Key
67-
--verbose Verbose
66+
-k, --stack-api-key=<value> Stack API key
67+
--verbose Verbose, display information in detailed format.
6868
6969
DESCRIPTION
7070
List the branches
@@ -91,8 +91,8 @@ USAGE
9191
9292
FLAGS
9393
-k, --stack-api-key=<value> Stack API key
94-
--source=<value> Source branch from which new branch to be created
95-
--uid=<value> Branch UID to be created
94+
--source=<value> Source branch from which a new branch is to be created.
95+
--uid=<value> Branch UID (unique name) to be created.
9696
9797
DESCRIPTION
9898
Create a new branch
@@ -145,12 +145,13 @@ USAGE
145145
$ csdx cm:branches:diff [--base-branch <value>] [--compare-branch <value>] [-k <value>][--module <value>]
146146
147147
FLAGS
148-
-k, --stack-api-key=<value> Provide Stack API key to show difference between branches
149-
--base-branch=<value> Base branch
150-
--compare-branch=<value> Compare branch
151-
--format=<option> [default: compact-text] [Optional] Type of flags to show branches differences
148+
-k, --stack-api-key=<value> [optional] Provide the Stack API key to show the difference between branches.
149+
--base-branch=<value> [optional] Base branch (Target branch).
150+
--compare-branch=<value> [optional] Compare branch (Source branch).
151+
--format=<option> [default: compact-text] [default: compact-text] [optional] Type of flags to show the
152+
difference between two branches. <options: compact-text, detailed-text>
152153
<options: compact-text|detailed-text>
153-
--module=<option> Module
154+
--module=<option> [optional] Module. <options: content-types, global-fields, all>
154155
<options: content-types|global-fields|all>
155156
156157
DESCRIPTION
@@ -194,13 +195,13 @@ USAGE
194195
[--use-merge-summary <value>] [--comment <value>] [--base-branch <value>]
195196
196197
FLAGS
197-
-k, --stack-api-key=<value> Provide Stack API key to show difference between branches
198-
--base-branch=<value> Base branch
199-
--comment=<value> Merge comment
200-
--compare-branch=<value> Compare branch name
201-
--export-summary-path=<value> Export summary file path
202-
--no-revert If passed, will not create the new revert branch
203-
--use-merge-summary=<value> Path of merge summary file
198+
-k, --stack-api-key=<value> [optional] Provide stack API key to show the difference between the branches.
199+
--base-branch=<value> [optional] Base branch (Target branch).
200+
--comment=<value> [optional] Pass a comment.
201+
--compare-branch=<value> [optional] Compare branch (Source branch).
202+
--export-summary-path=<value> [optional] Export summary file path.
203+
--no-revert [optional] If passed, will not create the new revert branch.
204+
--use-merge-summary=<value> [optional] Path of merge summary file.
204205
205206
DESCRIPTION
206207
Merge changes from a branch

packages/contentstack-branches/src/commands/cm/branches/create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default class BranchCreateCommand extends Command {
1919
]; // Note: Add and modify the usage
2020

2121
static flags = {
22-
uid: flags.string({ description: 'Branch UID to be created' }),
23-
source: flags.string({ description: 'Source branch from which new branch to be created' }),
22+
uid: flags.string({ description: 'Branch UID (unique name) to be created.' }),
23+
source: flags.string({ description: 'Source branch from which a new branch is to be created.' }),
2424
'stack-api-key': flags.string({ char: 'k', description: 'Stack API key' }),
2525
};
2626

packages/contentstack-branches/src/commands/cm/branches/diff.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@ export default class BranchDiffCommand extends Command {
2626

2727
static flags = {
2828
'base-branch': flags.string({
29-
description: 'Base branch',
29+
description: '[optional] Base branch (Target branch).',
3030
}),
3131
'compare-branch': flags.string({
32-
description: 'Compare branch',
32+
description: '[optional] Compare branch (Source branch).',
3333
}),
3434
module: flags.string({
35-
description: 'Module',
35+
description: '[optional] Module. <options: content-types, global-fields, all>',
3636
options: ['content-types', 'global-fields', 'all'],
3737
}),
3838
'stack-api-key': flags.string({
3939
char: 'k',
40-
description: 'Provide Stack API key to show difference between branches',
40+
description: '[optional] Provide the Stack API key to show the difference between branches.',
4141
}),
4242
format: flags.string({
4343
default: 'compact-text',
4444
multiple: false,
4545
options: ['compact-text', 'detailed-text'],
46-
description: '[Optional] Type of flags to show branches differences',
46+
description: '[default: compact-text] [optional] Type of flags to show the difference between two branches. <options: compact-text, detailed-text>',
4747
}),
48-
};
48+
};
4949

5050
static aliases: string[] = []; // Note: alternative usage if any
5151

packages/contentstack-branches/src/commands/cm/branches/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default class BranchListCommand extends Command {
1010
static usage: string = 'cm:branches'; // Note: Add and modify the usage
1111

1212
static flags = {
13-
'stack-api-key': flags.string({ char: 'k', description: 'Stack API Key' }),
14-
verbose: flags.boolean({ description: 'Verbose' }),
13+
'stack-api-key': flags.string({ char: 'k', description: 'Stack API key' }),
14+
verbose: flags.boolean({ description: 'Verbose, display information in detailed format.' }),
1515
};
1616

1717
static aliases: string[] = []; // Note: alternative usage if any

packages/contentstack-branches/src/commands/cm/branches/merge.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,40 @@ export default class BranchMergeCommand extends Command {
2020

2121
// TBD improve flag descriptions
2222
static flags = {
23-
'compare-branch': flags.string({
24-
description: 'Compare branch name',
23+
'compare-branch': flags.string({
24+
description: '[optional] Compare branch (Source branch).',
2525
}),
2626
'base-branch': flags.string({
27-
description: 'Base branch',
27+
description: '[optional] Base branch (Target branch).',
2828
}),
2929
comment: flags.string({
30-
description: 'Merge comment',
30+
description: '[optional] Pass a comment.',
3131
}),
3232
'stack-api-key': flags.string({
3333
char: 'k',
34-
description: 'Provide Stack API key to show difference between branches',
34+
description: '[optional] Provide stack API key to show the difference between the branches.',
3535
}),
3636
'export-summary-path': flags.string({
37-
description: 'Export summary file path',
37+
description: '[optional] Export summary file path.',
3838
}),
3939
'use-merge-summary': flags.string({
40-
description: 'Path of merge summary file',
40+
description: '[optional] Path of merge summary file.',
4141
}),
4242
'no-revert': flags.boolean({
43-
description: 'If passed, will not create the new revert branch',
43+
description: '[optional] If passed, will not create the new revert branch.',
4444
}),
4545
strategy: flags.string({
46-
description: 'Merge strategy',
46+
description: '[hidden] Merge strategy.',
4747
options: ['merge_prefer_base', 'merge_prefer_compare', 'overwrite_with_compare', 'custom_preferences'],
4848
hidden: true,
4949
}),
5050
'strategy-sub-options': flags.string({
51-
description: 'Merge strategy sub options',
51+
description: '[hidden] Merge strategy sub options.',
5252
options: ['new', 'modified', 'both'],
5353
hidden: true,
5454
}),
5555
'merge-action': flags.string({
56-
description: 'Merge strategy',
56+
description: '[hidden] Merge action.',
5757
options: ['export', 'execute', 'both'],
5858
hidden: true,
5959
}),

0 commit comments

Comments
 (0)