mirror of
https://github.com/zellyn/diskii.git
synced 2024-11-21 23:31:47 +00:00
32 lines
737 B
Go
32 lines
737 B
Go
// Copyright © 2016 Zellyn Hunter <zellyn@gmail.com>
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var cfgFile string
|
|
|
|
// RootCmd represents the base command when called without any subcommands
|
|
var RootCmd = &cobra.Command{
|
|
Use: "diskii",
|
|
Short: "Operate on Apple II disk images and their contents",
|
|
Long: `diskii is a commandline tool for working with Apple II disk
|
|
images.
|
|
|
|
Eventually, it aims to be a comprehensive disk image manipulation tool.`,
|
|
}
|
|
|
|
// Execute adds all child commands to the root command sets flags appropriately.
|
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
|
func Execute() {
|
|
if err := RootCmd.Execute(); err != nil {
|
|
fmt.Println(err)
|
|
os.Exit(-1)
|
|
}
|
|
}
|