Skip to content

Implement iln cancel command #233

Description

@Nursca

Description
There is no CLI command to cancel a pending invoice. Freelancers managing invoices from the terminal need this for cleanup workflows.

Requirements and context

  • iln cancel --id X
  • Fetch invoice first and confirm it is in Pending state; show an error if not
  • Show confirmation prompt: "Cancel Invoice #X (100 USDC, due 2025-12-31)? This cannot be undone. [y/N]"
  • Print Invoice #X cancelled. TX: [hash] on success

Suggested execution

git checkout -b feat/cli-cancel
  • Create cli/src/commands/cancel.ts
  • Register command in CLI entry point
  • Write tests

Example commit message
feat(cli): add iln cancel command for pending invoice cancellation

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions