Split the rune CLI up so there are individual binaries for each sub-command #357
Labels
area - infrastructure
Internal tooling and infrastructure (e.g. CI)
category - enhancement
New feature or request
effort - easy
This should be pretty simple
priority - low
This item can be put on the back-burner
A suggestion @f0rodo mentioned is being able to split
rune run
out of therune
CLI to simplify the process of installing from source.One possible way we could implement this is by creating multiple sub-commands, taking inspiration from how Cargo does custom subcommands.
rune
- a top-level binary which takesrune foo some-args
and calls therune-foo
program withsome-args
as its argumentsrune-run
- execute a Runerune-build
- compile a Runefile into a Runerune-graph
- take a Runefile and turn it into a DOT graph that can be visualisedWe can then use the
required-features
field inCargo.toml
to make sure a particular subcommand is only installed when runningcargo install
with the corresponding feature flag.For example:
That way you can run
cargo install hotg-rune-cli
to getrune run
andrune build
, or you could choose to just getrune build
by usingcargo install hotg-rune-cli --no-default-features --features build
.The text was updated successfully, but these errors were encountered: