|
| 1 | +package cmd |
| 2 | + |
| 3 | +import ( |
| 4 | + "github.com/rsteube/carapace" |
| 5 | + "github.com/spf13/cobra" |
| 6 | +) |
| 7 | + |
| 8 | +var build_xcarchiveCmd = &cobra.Command{ |
| 9 | + Use: "xcarchive", |
| 10 | + Short: "Build an iOS archive bundle", |
| 11 | + Run: func(cmd *cobra.Command, args []string) {}, |
| 12 | +} |
| 13 | + |
| 14 | +func init() { |
| 15 | + carapace.Gen(build_xcarchiveCmd).Standalone() |
| 16 | + |
| 17 | + build_xcarchiveCmd.Flags().Bool("analyze-size", false, "Produce additional profile information for artifact output size.") |
| 18 | + build_xcarchiveCmd.Flags().String("build-name", "", "A \"x.y.z\" string used as the version number shown to users.") |
| 19 | + build_xcarchiveCmd.Flags().String("build-number", "", "An identifier used as an internal version number.") |
| 20 | + build_xcarchiveCmd.Flags().String("dart-define", "", "Additional key-value pairs that will be available as constants.") |
| 21 | + build_xcarchiveCmd.Flags().Bool("debug", false, "Build a debug version of your app.") |
| 22 | + build_xcarchiveCmd.Flags().String("export-options-plist", "", "Optionally export an IPA with these options.") |
| 23 | + build_xcarchiveCmd.Flags().Bool("flavor", false, "Build a custom app flavor as defined by platform-specific build setup.") |
| 24 | + build_xcarchiveCmd.Flags().BoolP("help", "h", false, "Print this usage information.") |
| 25 | + build_xcarchiveCmd.Flags().Bool("no-analyze-size", false, "Do not produce additional profile information for artifact output size.") |
| 26 | + build_xcarchiveCmd.Flags().Bool("no-null-assertions", false, "Do not perform additional null assertions on the boundaries of migrated and un-migrated code.") |
| 27 | + build_xcarchiveCmd.Flags().Bool("no-obfuscate", false, "In a release build, this flag does not removes identifiers and replaces them with randomized values for the purposes of source code obfuscation.") |
| 28 | + build_xcarchiveCmd.Flags().Bool("no-pub", false, "Do not run \"flutter pub get\" before executing this command.") |
| 29 | + build_xcarchiveCmd.Flags().Bool("no-tree-shake-icons", false, "Do not tree shake icon fonts so that only glyphs used by the application remain.") |
| 30 | + build_xcarchiveCmd.Flags().Bool("null-assertions", false, "Perform additional null assertions on the boundaries of migrated and un-migrated code.") |
| 31 | + build_xcarchiveCmd.Flags().Bool("obfuscate", false, "In a release build, this flag removes identifiers and replaces them with randomized values for the purposes of source code obfuscation.") |
| 32 | + build_xcarchiveCmd.Flags().Bool("profile", false, "Build a version of your app specialized for performance profiling.") |
| 33 | + build_xcarchiveCmd.Flags().Bool("pub", false, "Run \"flutter pub get\" before executing this command.") |
| 34 | + build_xcarchiveCmd.Flags().Bool("release", false, "Build a release version of your app (default mode).") |
| 35 | + build_xcarchiveCmd.Flags().String("split-debug-info", "", "In a release build, this flag reduces application size by storing Dart program symbols in a separate file on the host rather than in the application.") |
| 36 | + build_xcarchiveCmd.Flags().StringP("target", "t", "", "The main entry-point file of the application, as run on the device.") |
| 37 | + build_xcarchiveCmd.Flags().Bool("tree-shake-icons", false, "Tree shake icon fonts so that only glyphs used by the application remain.") |
| 38 | + buildCmd.AddCommand(build_xcarchiveCmd) |
| 39 | + |
| 40 | + carapace.Gen(build_xcarchiveCmd).FlagCompletion(carapace.ActionMap{ |
| 41 | + "export-options-plist": carapace.ActionFiles(), |
| 42 | + "target": carapace.ActionFiles(".dart"), |
| 43 | + }) |
| 44 | +} |
0 commit comments