Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Improve command roots #104

Merged
merged 4 commits into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@
],
"topics": {
"service": {
"description": "Manage MESG Services"
"description": "Manage services"
},
"daemon": {
"description": "Manage MESG Engine"
"description": "Manage the Engine"
},
"marketplace": {
"description": "Let you interact with the MESG Marketplace"
"description": "Interact with the Marketplace"
},
"account": {
"description": "Manage your MESG Accounts"
"description": "Manage accounts"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/docker-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default abstract class extends Command {
static flags = {
...Command.flags,
name: flags.string({
description: 'Name of the service running the engine',
description: 'Name of the docker service running the engine',
required: true,
default: 'engine'
}),
Expand Down
6 changes: 3 additions & 3 deletions src/marketplace-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default abstract class MarketplaceCommand extends Command {
}),
passphrase: flags.string({
char: 'p',
description: 'Passphrase to unlock your account'
description: 'Passphrase to unlock the account'
})
}

Expand Down Expand Up @@ -65,7 +65,7 @@ export default abstract class MarketplaceCommand extends Command {
const {account} = (await prompt({
type: 'list',
name: 'account',
message: 'Choose the account to use to publish your service',
message: 'Select the account to use:',
choices: addresses
})) as { account: string }
return account
Expand All @@ -76,6 +76,6 @@ export default abstract class MarketplaceCommand extends Command {
if (flags.passphrase) {
return flags.passphrase
}
return cli.prompt('Type your passphrase', {type: 'hide'})
return cli.prompt('Type the passphrase', {type: 'hide'})
}
}
2 changes: 1 addition & 1 deletion src/root-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {format, inspect} from 'util'
export default abstract class extends Command {
static flags = {
help: flags.help({char: 'h'}),
quiet: flags.boolean({char: 'q', description: 'Display only important information'}),
quiet: flags.boolean({char: 'q', description: 'Display only essential information'}),
silent: flags.boolean({hidden: true}),
}

Expand Down