2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-05 00:00:14 +00:00
cointop/cmd/commands/cmd.go
2020-11-18 20:37:40 -08:00

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)
}
}