- Cleaned up func main() - Separated config into two sections server and factoryman - Updated backup.go to reflect changes to config file - Updated config.go to reflect changes to config.yml as well as added a check to paths in config.yml - Updated launch.go to reflect changes to config move cli handler from main to cli.go
15 lines
220 B
Go
15 lines
220 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) == 1 {
|
|
fmt.Println("Use 'start', 'stop', or 'backup' command\nex. factoryman start\nTo configure edit 'conifg.yml'")
|
|
} else {
|
|
cliToolMode()
|
|
}
|
|
}
|