Stack experimentation project, homunculus folder has the most complete project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

98 lines
2.1 KiB

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var (
rootCmd = &cobra.Command{
Use: "faust",
Short: "faust is an application server",
Long: `faust is a framework for developing certain types
of web/mobile sites.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(`faust must have a command provided
dev - Run dev server
build - Take the current application and turn it into production things
generate - Generate a new faust application
version - Show which version you're using of faust`)
},
}
// later version names:
//
// early stuff
// v2 Demented but Determined
// v3 Credibility Problem
// Size isn't Everything
// Charming but Irrational
// Screw Loose
// God Told Me to Do It
// Little Rascal
// Just Testing
// Beats Working
// Problem Child
// A Momentary Lapse of Sanity
// Teething Problems
// Youthful Indescretion
// Bad for Business
// Pure Big Mad Boat Man
// Now We Try It My Way
// Gravitas Free Zone
// Nervous Energy
//
// mid stuff
// You'll Thank Me Later
// Big Sexy Beast
// Unacceptable Behavior
// Quietly Confident
// Zero Gravitas
// Limiting Factor
// But Who's Counting
// Me, I'm Counting
// You Naughty Monsters
// Questionable Ethics
// Revisionist
// Gunboat Diplomat
// Resistance is Character Forming
//
// later stuff
// Dressed Up to Party
// The Ends of Invention
// Sweet and Full of Grace
// Grey Area
// Cargo Cult
// Kiss My Ass
// I Said, I've Got a Big Stick
// Contents May Differ
// Subtle Shift of Emphasis
// You Call This Clean?
// Value Judgement
// Mistake Not...
//
// used version names:
//
// v1 Fate Amenable to Change
versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version string of faust",
Long: "faust might have odd verions, but you might want to know it",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("faust v2 Demented but Determined")
},
}
)
func init() {
rootCmd.AddCommand(versionCmd)
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}