generated from bscotch/typescript-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Change basic info in the template CLI scripts (nowhere near fun…
…ctional still).
- Loading branch information
1 parent
6a29180
commit d12bab0
Showing
4 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env node | ||
import { BravoClient } from '$/lib/BravoClient.js'; | ||
import { program as cli } from 'commander'; | ||
|
||
// Kick it off | ||
cli | ||
.description('Bravo CLI: organizations') | ||
.option('--list', 'List all organizations') | ||
.option('--find-by-name', 'Find a specific organization') | ||
.parse(); | ||
|
||
// Sample user options available via: | ||
const options = cli.opts(); | ||
|
||
const client = new BravoClient(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env node | ||
import { program as cli } from 'commander'; | ||
|
||
// Kick it off | ||
cli | ||
.description('Bravo CLI: Talk to Favro from the command line!') | ||
.command('organizations', 'Get organization info.') | ||
.command('collections', 'Find and create collections.') | ||
.command('widgets', 'Create, view, and delete Widgets (a.k.a. "Boards").') | ||
.command('cards', 'Create, view, and delete Cards.') | ||
.parse(); | ||
|
||
// TODO: Add common fields for credentials, plus env file loading |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.