Skip to content

Commit

Permalink
Merge pull request #82 from arkahna/bugfix/add_namespace_cli_validation
Browse files Browse the repository at this point in the history
added validate to namespace
  • Loading branch information
MatthewJNixon authored Jan 16, 2024
2 parents e7839f2 + 59c8364 commit b325aa1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-ears-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@featureboard/code-generator': patch
---

Added namespace validator to cli
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export async function getDotNetNamespace(
const response = await prompts({
type: 'text',
name: 'namespace',
message: `Please provide your .net namespace:`,
message: `Please provide your .NET namespace:`,
validate: (x) => !!x || 'You must enter a namespace.',
})

// handle the 'any'
Expand Down

0 comments on commit b325aa1

Please sign in to comment.