@@ -32,7 +32,6 @@ func newCreateCmd(cfg config.Configuration) *cobra.Command {
3232 icon string
3333 description string
3434 bricks []string
35- noPyton bool
3635 noSketch bool
3736 fromApp string
3837 )
@@ -44,22 +43,20 @@ func newCreateCmd(cfg config.Configuration) *cobra.Command {
4443 RunE : func (cmd * cobra.Command , args []string ) error {
4544 cobra .MinimumNArgs (1 )
4645 name := args [0 ]
47- return createHandler (cmd .Context (), cfg , name , icon , description , noPyton , noSketch , fromApp )
46+ return createHandler (cmd .Context (), cfg , name , icon , description , noSketch , fromApp )
4847 },
4948 }
5049
5150 cmd .Flags ().StringVarP (& icon , "icon" , "i" , "" , "Icon for the app" )
5251 cmd .Flags ().StringVarP (& description , "description" , "d" , "" , "Description for the app" )
5352 cmd .Flags ().StringVarP (& fromApp , "from-app" , "" , "" , "Create the new app from the path of an existing app" )
5453 cmd .Flags ().StringArrayVarP (& bricks , "bricks" , "b" , []string {}, "List of bricks to include in the app" )
55- cmd .Flags ().BoolVarP (& noPyton , "no-python" , "" , false , "Do not include Python files" )
5654 cmd .Flags ().BoolVarP (& noSketch , "no-sketch" , "" , false , "Do not include Sketch files" )
57- cmd .MarkFlagsMutuallyExclusive ("no-python" , "no-sketch" )
5855
5956 return cmd
6057}
6158
62- func createHandler (ctx context.Context , cfg config.Configuration , name string , icon string , description string , noPython , noSketch bool , fromApp string ) error {
59+ func createHandler (ctx context.Context , cfg config.Configuration , name string , icon string , description string , noSketch bool , fromApp string ) error {
6360 if fromApp != "" {
6461 id , err := servicelocator .GetAppIDProvider ().ParseID (fromApp )
6562 if err != nil {
@@ -88,7 +85,6 @@ func createHandler(ctx context.Context, cfg config.Configuration, name string, i
8885 Name : name ,
8986 Icon : icon ,
9087 Description : description ,
91- SkipPython : noPython ,
9288 SkipSketch : noSketch ,
9389 }, servicelocator .GetAppIDProvider (), cfg )
9490 if err != nil {
0 commit comments