Skip to content

Commit 1524db3

Browse files
chore: convert names with spaces to names with underscores
1 parent 43bc9e6 commit 1524db3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/agent/generate/authoring-bundle.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
7777
const spec = flags['spec'] ?? (await promptForFlag(AgentGenerateAuthoringBundle.FLAGGABLE_PROMPTS['spec']));
7878

7979
// If we don't have a name yet, prompt for it
80-
const name = flags['name'] ?? (await promptForFlag(AgentGenerateAuthoringBundle.FLAGGABLE_PROMPTS['name']));
80+
const name = (
81+
flags['name'] ?? (await promptForFlag(AgentGenerateAuthoringBundle.FLAGGABLE_PROMPTS['name']))
82+
).replaceAll(' ', '_');
8183

8284
try {
8385
// Get default output directory if not specified

0 commit comments

Comments
 (0)