Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Direnv = &cobra.Command{ Use: "direnv", Short: "direnv initializes the direnv environment for the project", Run: func(cmd *cobra.Command, args []string) { err := generateEnvrc() if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } err = fetchGitignore() if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } if envVar != "" { err = setDirenv(envVar) if err != nil { fmt.Println(styles.ErrorStyle.Render("error: ", err.Error())) os.Exit(1) } } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.