cmd: fixed typo and removed solved TODO msg

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-04-14 16:25:10 -07:00
parent bbeff0eddb
commit 7ed616c772
2 changed files with 1 additions and 3 deletions

View File

@ -22,7 +22,7 @@ var downCmd = &cobra.Command{
} }
func init() { func init() {
downCmd.Flags().Bool("--no-cache", false, "Disable all run cache") downCmd.Flags().Bool("no-cache", false, "Disable all run cache")
if err := viper.BindPFlags(downCmd.Flags()); err != nil { if err := viper.BindPFlags(downCmd.Flags()); err != nil {
panic(err) panic(err)

View File

@ -29,8 +29,6 @@ var upCmd = &cobra.Command{
} }
state := common.GetCurrentDeploymentState(ctx, store) state := common.GetCurrentDeploymentState(ctx, store)
// TODO: Implement options: --no-cache
result := common.DeploymentUp(ctx, state, viper.GetBool("no-cache")) result := common.DeploymentUp(ctx, state, viper.GetBool("no-cache"))
state.Computed = result.Computed().JSON().String() state.Computed = result.Computed().JSON().String()
if err := store.UpdateDeployment(ctx, state, nil); err != nil { if err := store.UpdateDeployment(ctx, state, nil); err != nil {