@@ -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+ AppName : "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+ AppName : "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+ AppName : "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+ AppName : "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)
0 commit comments