feat: Add aliases for CLI
parent
c62eeec1d8
commit
17aa9b4cbd
|
@ -140,6 +140,7 @@ program
|
||||||
// `$ config-sync import`
|
// `$ config-sync import`
|
||||||
program
|
program
|
||||||
.command('import')
|
.command('import')
|
||||||
|
.alias('i')
|
||||||
// .option('-t, --type <type>', 'The type of config') // TODO: partial import
|
// .option('-t, --type <type>', 'The type of config') // TODO: partial import
|
||||||
.option('-y', 'Skip the confirm prompt')
|
.option('-y', 'Skip the confirm prompt')
|
||||||
.description('Import the config')
|
.description('Import the config')
|
||||||
|
@ -150,6 +151,7 @@ program
|
||||||
// `$ config-sync export`
|
// `$ config-sync export`
|
||||||
program
|
program
|
||||||
.command('export')
|
.command('export')
|
||||||
|
.alias('e')
|
||||||
// .option('-t, --type <type>', 'The type of config') // TODO: partial export
|
// .option('-t, --type <type>', 'The type of config') // TODO: partial export
|
||||||
.option('-y', 'Skip the confirm prompt')
|
.option('-y', 'Skip the confirm prompt')
|
||||||
.description('Export the config')
|
.description('Export the config')
|
||||||
|
@ -160,6 +162,7 @@ program
|
||||||
// `$ config-sync diff`
|
// `$ config-sync diff`
|
||||||
program
|
program
|
||||||
.command('diff')
|
.command('diff')
|
||||||
|
.alias('d')
|
||||||
// .option('-t, --type <type>', 'The type of config') // TODO: partial diff
|
// .option('-t, --type <type>', 'The type of config') // TODO: partial diff
|
||||||
.description('The config diff')
|
.description('The config diff')
|
||||||
.action(async ({ type }) => {
|
.action(async ({ type }) => {
|
||||||
|
|
Loading…
Reference in New Issue