Skip to content

Migrate apiclient to argh crate #648

@ytsssun

Description

@ytsssun

Summary

Replace custom argument parsing in apiclient with argh to align with other Bottlerocket components (certdog, bloodhound, ghostdog, etc.).

Current issues:

  • Custom parsing becomes increasingly complex as we introduce new subcommands and arguments, which could introduce maintenance burden
  • Current parsing implementation has side effect (e.g. the parsing of "-h | --help" would indirectly trigger program::exit()) which makes it very hard to unit test.
  • Inconsistent with rest of codebase where we use argh for the CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions