Skip to content

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Oct 22, 2025

Creates a new dev-cli module for rapidly testing SDK functionality from the command line. Provides commands for wallet balance, address creation, sending transactions, listing transfers, and lightning operations.

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

Ticket: BTC-0

Creates a new dev-cli module for rapidly testing SDK functionality from
the command line. Provides commands for wallet balance, address creation,
sending transactions, listing transfers, and lightning operations.

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 3 months ago

To fix this issue, remove logJSON from the import statement on line 4 in modules/dev-cli/src/commands/balance.ts. You should not change how any other imported symbol is used. Only delete the unused import, leaving logSuccess, logError, and logInfo unchanged in the import statement. This improves code clarity and removes a potential source of confusion or maintenance overhead. No further code or imports need to be added or altered elsewhere in the file.


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.
Comment on lines +85 to +88
} catch (error) {
logError(`Failed to send transaction: ${error.message}`);
process.exit(1);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this swallows the stack

@lcovar lcovar closed this Oct 23, 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.

3 participants