-
-
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: adds status/account sub-command
- Loading branch information
Showing
5 changed files
with
36 additions
and
2 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
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,27 @@ | ||
#!/usr/bin/env node | ||
import { Command } from 'commander'; | ||
|
||
import { createDefaultClient } from './lib/client.js'; | ||
import config from './lib/config.js'; | ||
import { BIN_NAME } from './lib/constants.js'; | ||
|
||
// TODO filter for specific transactions, amount, incoming, outgoing? | ||
const program = new Command(); | ||
program | ||
.description(``) | ||
.addHelpText( | ||
'after', | ||
` | ||
Examples: | ||
Lorem Ipusm | ||
${BIN_NAME} status | ||
`, | ||
) | ||
.action(run) | ||
.parseAsync(); | ||
|
||
async function run() { | ||
const client = await createDefaultClient(config); | ||
const account = await client.models.account.get(); | ||
console.log(account); | ||
} |
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
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
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