Skip to content

Commit

Permalink
order
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Sep 8, 2024
1 parent 55e0e38 commit 21372e1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ program.command('exec')
await stax.findContainer(name, options).exec(command)
})

program.command('get')
.argument('<name>', 'Name of application')
.argument('<source>', 'File to copy from the container')
.argument('<destination>', 'Local destination to copy the file to')
.option('-s, --service <name>', 'Name of service to act on')
.description('Copy a from the container')
.action(async (name, source, destination, options) => stax.findContainer(name, options).get(source, destination))

program.command('inspect')
.argument('<name>', 'Name of application')
.option('-c, --compose', 'Show the compose file')
Expand All @@ -96,8 +104,8 @@ program.command('inspect')
run(`docker inspect ${app.primary.containerName}`)
})

program.command('list')
.alias('ps').alias('ls')
program.command('ls')
.alias('ps').alias('list')
.description('List applications')
.action(() => stax.list())

Expand Down Expand Up @@ -132,14 +140,6 @@ program.command('restart')
.description('Restart an application')
.action(async name => { await stax.find(name).restart() })

program.command('get')
.argument('<name>', 'Name of application')
.argument('<source>', 'File to copy from the container')
.argument('<destination>', 'Local destination to copy the file to')
.option('-s, --service <name>', 'Name of service to act on')
.description('Copy a from the container')
.action(async (name, source, destination, options) => stax.findContainer(name, options).get(source, destination))

program.command('setup')
.argument('<location>', 'Path to a local directory or git repo of application')
.option('-s, --staxfile <staxfile>', 'Staxfile to use for setup')
Expand Down

0 comments on commit 21372e1

Please sign in to comment.