Skip to content

Commit

Permalink
Use "--env" instead of "-path" for consistency in "env doctor" subcom…
Browse files Browse the repository at this point in the history
…mand
  • Loading branch information
asmaloney committed Aug 26, 2023
1 parent ebc04a6 commit 02ecb95
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/spf13/cobra"

"github.com/asmaloney/gactar/util/chalk"
"github.com/asmaloney/gactar/util/cli"
"github.com/asmaloney/gactar/util/executil"
"github.com/asmaloney/gactar/util/filesystem"
"github.com/asmaloney/gactar/util/lisp"
Expand All @@ -25,12 +24,7 @@ var doctorCmd = &cobra.Command{
Use: "doctor",
Short: "Check an environment for problems",
RunE: func(cmd *cobra.Command, args []string) (err error) {
envPath, err := expandPathFlag(cmd.Flags(), "path")
if err != nil {
return
}

err = cli.SetupPaths(envPath)
envPath, err := setupVirtualEnvironment(cmd.Flags())
if err != nil {
return
}
Expand All @@ -50,8 +44,6 @@ var doctorCmd = &cobra.Command{

func init() {
envCmd.AddCommand(doctorCmd)

doctorCmd.Flags().StringP("path", "p", "./env", "environment to check")
}

func outputSectionHeader(text string) {
Expand Down

0 comments on commit 02ecb95

Please sign in to comment.