Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "fmt", Short: "Format a .env file", RunE: func(cmd *cobra.Command, args []string) error { filename := cmd.Flag("file").Value.String() env, err := pkg.Load(filename) if err != nil { return err } if err := pkg.Save(filename, env); err != nil { return err } tui.Theme.Success.StdoutPrinter().Printfln("File [%s] was successfully formatted", filename) return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.