Skip to content

Commit

Permalink
type the arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrusch committed Aug 22, 2021
1 parent 8f9eb99 commit fbbef0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ program
.arguments('<zip_file>')
.arguments('<extension_id>')
.option('-t, --testers', 'publish to testers')
.action((a, b, c, d, e) => publish(a, b, c, d, e, (program as OptionValues).testers))
.action((
clientId: string,
secret: string,
token: string,
zipPath: string,
extId: string
) => publish(clientId, secret, token, zipPath, extId, (program as OptionValues).testers))
.parse(process.argv);
8 changes: 7 additions & 1 deletion src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@ program
.arguments('<refresh_token>')
.arguments('<zip_file>')
.arguments('<extension_id>')
.action((a, b, c, d, e) => (upload(a, b, c, d, e) as Promise<any>))
.action((
clientId: string,
secret: string,
token: string,
zipPath: string,
extId: string
) => (upload(clientId, secret, token, zipPath, extId) as Promise<any>))
.parse(process.argv);

0 comments on commit fbbef0a

Please sign in to comment.