Skip to content

Turn lix-diff into a multicall binary to add more subcommands (e.g. lix-list and lix-history) #7

@jalil-salame

Description

@jalil-salame

Since we have nvd diff covered by lix-diff it would be nice to also have lix-list as an analog to nvd list.

I am more interested in nvd list than nvd history, bu that might also be nice to provide.

We probably shouldn't call it lix-list though, since they might want to do something like cargo list (that lists all subcommands).

I would be willing to put in the work to turn lix-diff into a multicall binary, this means you would install a base program (e.g. tgc-lix) and create symlinks to it (e.g. lix-diff and lix-list), depending on whether it was called by lix-diff or lix-list it will do something different. clap supports this natively so it shouldn't be a big change.

Some benefits of turning it into a multicall binary are:

  • Smaller size on disk since we don't have duplicated dependencies
  • Easier to share code between commands (don't have to do a lib/bin split)
  • Its honestly kinda neat

Some drawbacks:

  • The project might need to be renamed (its no longer just lix-diff)
  • Longer build times if you are changing a single tool

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