github.com/bitrise-io/go-xamarin@v0.0.0-20211005113058-bf60a8bae851/cli/commands.go (about) 1 package cli 2 3 import "github.com/urfave/cli" 4 5 const ( 6 solutionFilePathKey string = "path" 7 solutionConfigurationKey string = "configuration" 8 solutionPlatformKey string = "platform" 9 10 buildToolKey string = "build-tool" 11 ) 12 13 var commands = []cli.Command{ 14 { 15 Name: "build", 16 Usage: "Build xamarin projects", 17 Action: buildCmd, 18 Flags: []cli.Flag{ 19 cli.StringFlag{ 20 Name: solutionFilePathKey, 21 Usage: "Solution file path", 22 }, 23 cli.StringFlag{ 24 Name: solutionConfigurationKey, 25 Usage: "Solution configuration", 26 }, 27 cli.StringFlag{ 28 Name: solutionPlatformKey, 29 Usage: "Solution platform", 30 }, 31 cli.StringFlag{ 32 Name: buildToolKey, 33 Usage: "Build Tool to use, available: msbuild, xbuild", 34 }, 35 }, 36 }, 37 { 38 Name: "clean", 39 Usage: "Clean xamarin projects", 40 Action: cleanCmd, 41 Flags: []cli.Flag{ 42 cli.StringFlag{ 43 Name: solutionFilePathKey, 44 Usage: "Solution file path", 45 }, 46 }, 47 }, 48 { 49 Name: "version", 50 Usage: "Prints version", 51 Action: versionCmd, 52 }, 53 }