Skip to content

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Oct 22, 2025

Create a powerful command-line tool for quickly testing BitGo SDK changes during development across different coins and environments.

The dev-cli provides a streamlined way to test common BitGo operations:

  • Wallet balance checks
  • Address creation
  • Transaction sending
  • Lightning operations
  • Wallet management

Features hierarchical config management by environment/coin, easy switching between coins, and direct integration with the SDK.

Co-authored-by: llm-git llm-git@ttll.de

Ticket: BTC-0

Create a powerful command-line tool for quickly testing BitGo SDK changes
during development across different coins and environments.

The dev-cli provides a streamlined way to test common BitGo operations:
- Wallet balance checks
- Address creation
- Transaction sending
- Lightning operations
- Wallet management

Features hierarchical config management by environment/coin, easy
switching between coins, and direct integration with the SDK.

Co-authored-by: llm-git <llm-git@ttll.de>

Ticket: BTC-0
import { CommandModule } from 'yargs';
import { getConfig, validateWalletId } from '../config';
import { getBitGoInstance } from '../bitgo-client';
import { logSuccess, logError, logInfo, logJSON } from '../utils';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import logJSON.

Copilot Autofix

AI 1 day ago

To fix the problem, simply remove the unused import (logJSON) from the import statement on line 4, leaving only the utilities that are actually used in the file (logSuccess, logError, and logInfo). This change is safe and non-breaking, as no other parts of the shown file use logJSON. Only edit the existing import statement; leave all other code unchanged.

Suggested changeset 1
modules/dev-cli/src/commands/balance.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/modules/dev-cli/src/commands/balance.ts b/modules/dev-cli/src/commands/balance.ts
--- a/modules/dev-cli/src/commands/balance.ts
+++ b/modules/dev-cli/src/commands/balance.ts
@@ -1,7 +1,7 @@
 import { CommandModule } from 'yargs';
 import { getConfig, validateWalletId } from '../config';
 import { getBitGoInstance } from '../bitgo-client';
-import { logSuccess, logError, logInfo, logJSON } from '../utils';
+import { logSuccess, logError, logInfo } from '../utils';
 
 export const balanceCommand: CommandModule = {
   command: 'balance',
EOF
@@ -1,7 +1,7 @@
import { CommandModule } from 'yargs';
import { getConfig, validateWalletId } from '../config';
import { getBitGoInstance } from '../bitgo-client';
import { logSuccess, logError, logInfo, logJSON } from '../utils';
import { logSuccess, logError, logInfo } from '../utils';

export const balanceCommand: CommandModule = {
command: 'balance',
Copilot is powered by AI and may make mistakes. Always verify output.
@lcovar lcovar closed this Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant