Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ice", Short: "command-line tool to interact with an ice file", Long: `Ice is a command-line tool to interact with an ice file.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if len(args) < rootArgFilename { return fmt.Errorf("must specify path to file") } segInt, _, err := openFromFile(args[0]) if err != nil { return fmt.Errorf("error opening file: %v", err) } seg = segInt.(*ice.Segment) return nil }, PersistentPostRunE: func(cmd *cobra.Command, args []string) error { return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.