Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron authored Feb 6, 2024
1 parent 08a587e commit 6941e86
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 16 deletions.
36 changes: 20 additions & 16 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,32 @@ void yargs
.command('devid') // alias: getDevId

//bundle
.command('stage|zip')
.command('bundle', ()=>{
const command = new ExecCommand({
actions: 'stage|zip'
})
})

//deploy
.command('stage|zip|delete|close|sideload')
.command('deploy', ()=>{
const command = new ExecCommand({
actions: 'stage|zip|delete|close|sideload'
})
})

//package
.command('close|rekey|stage|zip|delete|close|sideload|squash|sign')
.command('package', ()=>{
const command = new ExecCommand({
actions: 'close|rekey|stage|zip|delete|close|sideload|squash|sign'
})
})

//exec
.command('magic')












.command('exec', ()=>{
const command = new ExecCommand({
actions: builder.args.actions
})
})



Expand Down
15 changes: 15 additions & 0 deletions src/commands/ExecCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export class ExecCommand {
constructor({actions: string }){
this.actions = options.actions.split('|');
}

run() {
if(this.actions.includes('stage')){
rokuDeploy.stage();
}

if(this.actions.includes('zip')){
rokuDeploy.zip();
}
}
}

0 comments on commit 6941e86

Please sign in to comment.