PlanktoScope / forklift

Composable, reprovisionable, decentralized management of apps & configs on Raspberry Pis and other embedded Linux systems
Apache License 2.0
6 stars 0 forks source link

ui: Add a `stage get-next` subcommand #227

Open ethanjli opened 1 month ago

ethanjli commented 1 month ago

Currently there's a stage set-next subcommand, but the only way to check the index of the next staged pallet bundle is to run stage show or stage show-bun next (which are not easy to use in shell scripts) or to parse the output of stage locate-bun next (e.g. as in here). We should just add a stage get-next subcommand which simply prints the index of the next staged pallet bundle.

ethanjli commented 1 month ago

Note: the use-case of using the next staged pallet bundle to call stage set-next (to reset tracking of whether the next staged pallet bundle failed to be applied) should already be solved by calling stage set-next next.