INNER CODE UNIT · Go

init

brexhq/substation · cmd/substation/main.go:108

func init() {
	// Hides the 'completion' command.
	rootCmd.AddCommand(&cobra.Command{
		Use:    "completion",
		Short:  "generate the autocompletion script for the specified shell",
		Hidden: true,
	})

	// Hides the 'help' command.
	rootCmd.SetHelpCommand(&cobra.Command{
		Use:    "no-help",
		Hidden: true,
	})
}

// compileFile returns JSON from a Jsonnet file.
func compileFile(fi string, extVars map[string]string) (string, error) {
	f, err := os.Open(fi)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…