feat: implement update command and add error check for toml key access

This commit is contained in:
2025-09-25 23:52:13 +05:30
parent 54c23bad6f
commit ed9201851e
6 changed files with 91 additions and 11 deletions

View File

@@ -32,11 +32,8 @@ var createCmd = &cobra.Command{
return
}
project := envy.Get("envy.project").(string)
if project == "" {
utils.ErrPrint("Project name is empty. envy.toml file might have been modified.")
return
}
project, err := utils.GetKey(envy, "envy.project")
utils.StopIfErr(err)
dbProject, err := utils.GetProject(project)
if err != nil {