# Functions
ConfigureContainerRuntime sets up the containerRuntime variable and is defined as a PersistentPreRunE hook for all astro dev sub-commands.
CreateRootPersistentPreRunE takes clients as arguments and returns a cobra pre-run hook that sets up the context and checks for the latest version.
DoNothing is a persistent pre-run hook that does nothing.
EnsureRuntime is a pre-run hook that ensures that the project directory exists and starts the container runtime if necessary.
KillPostRunHook ensures that we stop and kill the podman machine once a project has been killed.
KillPreRunHook sets the container runtime if its running, otherwise we bail with an error message.
NewRootCmd adds all of the primary commands for the cli.
SetRuntimeIfExists is a pre-run hook that ensures the project directory exists and sets the container runtime if its running, otherwise we bail with an error message.
SetupLogging is a pre-run hook shared between software & cloud setting up log verbosity.