mirror of
https://github.com/silicoflare/envy.git
synced 2026-05-26 19:57:59 +05:30
feat: implement update command and add error check for toml key access
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user