@@ -72,7 +72,7 @@ func TestCreateCommand(t *testing.T) {
7272 template , err := create .ResolveTemplateURL ("slack-samples/bolt-js-starter-template" )
7373 require .NoError (t , err )
7474 expected := create.CreateArgs {
75- AppName : "my-app" ,
75+ AppPath : "my-app" ,
7676 Template : template ,
7777 }
7878 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
@@ -109,7 +109,7 @@ func TestCreateCommand(t *testing.T) {
109109 template , err := create .ResolveTemplateURL ("slack-samples/deno-starter-template" )
110110 require .NoError (t , err )
111111 expected := create.CreateArgs {
112- AppName : "my-deno-app" ,
112+ AppPath : "my-deno-app" ,
113113 Template : template ,
114114 }
115115 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
@@ -156,7 +156,7 @@ func TestCreateCommand(t *testing.T) {
156156 require .NoError (t , err )
157157 template .SetSubdir ("claude-agent-sdk" )
158158 expected := create.CreateArgs {
159- AppName : "my-agent" ,
159+ AppPath : "my-agent" ,
160160 Template : template ,
161161 Subdir : "claude-agent-sdk" ,
162162 }
@@ -203,7 +203,7 @@ func TestCreateCommand(t *testing.T) {
203203 require .NoError (t , err )
204204 template .SetSubdir ("claude-agent-sdk" )
205205 expected := create.CreateArgs {
206- AppName : "my-agent-app" ,
206+ AppPath : "my-agent-app" ,
207207 Template : template ,
208208 Subdir : "claude-agent-sdk" ,
209209 }
@@ -234,7 +234,7 @@ func TestCreateCommand(t *testing.T) {
234234 require .NoError (t , err )
235235 template .SetSubdir ("pydantic-ai" )
236236 expected := create.CreateArgs {
237- AppName : "my-pydantic-app" ,
237+ AppPath : "my-pydantic-app" ,
238238 Template : template ,
239239 Subdir : "pydantic-ai" ,
240240 }
@@ -268,7 +268,7 @@ func TestCreateCommand(t *testing.T) {
268268 template , err := create .ResolveTemplateURL ("slack-samples/bolt-js-starter-template" )
269269 require .NoError (t , err )
270270 expected := create.CreateArgs {
271- AppName : "agent" ,
271+ AppPath : "agent" ,
272272 Template : template ,
273273 }
274274 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
@@ -304,8 +304,9 @@ func TestCreateCommand(t *testing.T) {
304304 template , err := create .ResolveTemplateURL ("slack-samples/bolt-js-starter-template" )
305305 require .NoError (t , err )
306306 expected := create.CreateArgs {
307- AppName : "agent" ,
308- Template : template ,
307+ AppPath : "agent" ,
308+ DisplayName : "agent" ,
309+ Template : template ,
309310 }
310311 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
311312 // Verify that category prompt WAS called (shortcut was not triggered)
@@ -351,9 +352,10 @@ func TestCreateCommand(t *testing.T) {
351352 require .NoError (t , err )
352353 template .SetSubdir ("claude-agent-sdk" )
353354 expected := create.CreateArgs {
354- AppName : "my-custom-name" , // --name flag overrides
355- Template : template ,
356- Subdir : "claude-agent-sdk" ,
355+ AppPath : "my-custom-name" , // --name flag used as path when no positional arg
356+ DisplayName : "my-custom-name" ,
357+ Template : template ,
358+ Subdir : "claude-agent-sdk" ,
357359 }
358360 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
359361 // Verify that category prompt was NOT called (shortcut was triggered)
@@ -387,8 +389,9 @@ func TestCreateCommand(t *testing.T) {
387389 template , err := create .ResolveTemplateURL ("slack-samples/bolt-js-starter-template" )
388390 require .NoError (t , err )
389391 expected := create.CreateArgs {
390- AppName : "my-name" , // --name flag overrides "my-project" positional arg
391- Template : template ,
392+ AppPath : "my-project" , // positional arg preserved as path
393+ DisplayName : "my-name" , // --name flag sets manifest display name
394+ Template : template ,
392395 }
393396 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
394397 // Verify that name prompt was NOT called since --name flag was provided
@@ -432,9 +435,10 @@ func TestCreateCommand(t *testing.T) {
432435 require .NoError (t , err )
433436 template .SetSubdir ("claude-agent-sdk" )
434437 expected := create.CreateArgs {
435- AppName : "my-name" , // --name flag overrides "my-project" positional arg
436- Template : template ,
437- Subdir : "claude-agent-sdk" ,
438+ AppPath : "my-project" , // positional arg preserved as path
439+ DisplayName : "my-name" , // --name flag sets manifest display name
440+ Template : template ,
441+ Subdir : "claude-agent-sdk" ,
438442 }
439443 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
440444 // Verify that category prompt was NOT called (agent shortcut was triggered)
@@ -505,7 +509,7 @@ func TestCreateCommand(t *testing.T) {
505509 cm .IO .AssertCalled (t , "InputPrompt" , mock .Anything , "Name your app:" , mock .Anything )
506510 // When the user accepts the default (empty return), the generated name is used
507511 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , mock .MatchedBy (func (args create.CreateArgs ) bool {
508- return args .AppName != ""
512+ return args .AppPath != ""
509513 }))
510514 },
511515 },
@@ -538,7 +542,7 @@ func TestCreateCommand(t *testing.T) {
538542 cm .IO .AssertNotCalled (t , "InputPrompt" , mock .Anything , "Name your app:" , mock .Anything )
539543 // Should still call Create with a non-empty generated name
540544 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , mock .MatchedBy (func (args create.CreateArgs ) bool {
541- return args .AppName != ""
545+ return args .AppPath != ""
542546 }))
543547 },
544548 },
@@ -569,7 +573,7 @@ func TestCreateCommand(t *testing.T) {
569573 template , err := create .ResolveTemplateURL ("slack-samples/bolt-js-starter-template" )
570574 require .NoError (t , err )
571575 expected := create.CreateArgs {
572- AppName : "my-project" ,
576+ AppPath : "my-project" ,
573577 Template : template ,
574578 }
575579 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , expected )
@@ -615,7 +619,7 @@ func TestCreateCommand(t *testing.T) {
615619 template , err := create .ResolveTemplateURL ("slack-samples/bolt-js-starter-template" )
616620 require .NoError (t , err )
617621 createClientMock .AssertCalled (t , "Create" , mock .Anything , mock .Anything , mock .MatchedBy (func (args create.CreateArgs ) bool {
618- return args .AppName != "" && args .Template == template && args .Subdir == "apps/my-app"
622+ return args .AppPath != "" && args .Template == template && args .Subdir == "apps/my-app"
619623 }))
620624 },
621625 },
0 commit comments