You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/cmd/commands/cmd.go

27 lines
335 B
Go

package cmd
import (
"fmt"
"os"
)
// Execute executes the program
func Execute() {
rootCmd := RootCmd()
rootCmd.AddCommand(
VersionCmd(),
CleanCmd(),
ResetCmd(),
HoldingsCmd(),
PriceCmd(),
DominanceCmd(),
ServerCmd(),
TestCmd(),
)
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}