Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Error if trying to run devdash edit without config
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantas0s committed Apr 10, 2023
1 parent 2738e23 commit e33bd83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func editCmd() *cobra.Command {
}

func edit(args []string) {
if len(args) == 0 {
fmt.Fprintf(os.Stdout, "You need to specify a config file as first argument")
return
}
file := findConfigFile(args[0])
if file == "" {
fmt.Fprintf(os.Stdout, "The config %s doesn't exist", args[0])
Expand Down

0 comments on commit e33bd83

Please sign in to comment.