30 lines
452 B
Go
30 lines
452 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var root = &cobra.Command{
|
||
|
Use: "fls",
|
||
|
Short: "FiLe Store stores files efficiently across many servers",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
// Do Stuff Here
|
||
|
},
|
||
|
}
|
||
|
|
||
|
func Execute() {
|
||
|
if err := root.Execute(); err != nil {
|
||
|
fmt.Fprintln(os.Stderr, err)
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
// todo: anything to init?
|
||
|
// cobra.OnInitialize(initConfig)
|
||
|
|
||
|
}
|