mirror of https://github.com/miguelmota/cointop
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.
27 lines
335 B
Go
27 lines
335 B
Go
5 years ago
|
package cmd
|
||
|
|
||
4 years ago
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
5 years ago
|
// Execute executes the program
|
||
|
func Execute() {
|
||
4 years ago
|
rootCmd := RootCmd()
|
||
|
rootCmd.AddCommand(
|
||
|
VersionCmd(),
|
||
|
CleanCmd(),
|
||
|
ResetCmd(),
|
||
|
HoldingsCmd(),
|
||
4 years ago
|
PriceCmd(),
|
||
|
DominanceCmd(),
|
||
4 years ago
|
ServerCmd(),
|
||
|
TestCmd(),
|
||
|
)
|
||
5 years ago
|
|
||
|
if err := rootCmd.Execute(); err != nil {
|
||
4 years ago
|
fmt.Println(err)
|
||
|
os.Exit(1)
|
||
5 years ago
|
}
|
||
|
}
|