Skip to content

Commit

Permalink
feat: Change basic info in the template CLI scripts (nowhere near fun…
Browse files Browse the repository at this point in the history
…ctional still).
  • Loading branch information
adam-coster committed Jul 3, 2021
1 parent 6a29180 commit d12bab0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 21 deletions.
15 changes: 15 additions & 0 deletions src/cli/bravo-organizations.ts
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();
13 changes: 13 additions & 0 deletions src/cli/bravo.ts
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
16 changes: 0 additions & 16 deletions src/cli/cli-subcommand.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/cli/cli.ts

This file was deleted.

0 comments on commit d12bab0

Please sign in to comment.