feat(bin): Down Subcommand #21
Labels
A-bin
Area: Binary related
alpha
C-feature
Category: Features
M-good-first-issue
Meta: Good first issue
Description
As part of #17, this task is to introduce a new
down
subcommand toop-up
that winds down the op-stack defined by the localstack.toml
configuration file.Since this is a destructive action, it should use
inquire
to prompt the user to confirm running the command.The logic of winding down a stack based on the config should be abstracted into the Stage Manager orchestrator (doesn't exist yet). This allows the
opup
cli binary to build the stage manager from the config, and then be able to wind down the stack via a simpledown() -> eyre::Result<()>
call.For example
The logic behind building a stage manager orchestrator from the stack config is so that it can handle finding existing running stack components based on the configuration. This separates concerns whereby the stack configuration solely handles component and stack configuration while the stage manager can handle orchestrating the stack stages/components.
Since the stage manager
.down()
call is very minimal, thedown
subcommand logic can be placed insidecli.rs
alongside subcommand dispatching.The text was updated successfully, but these errors were encountered: