We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e09f3 commit 3f8fe8aCopy full SHA for 3f8fe8a
.changeset/wet-moons-roll.md
@@ -0,0 +1,5 @@
1
+---
2
+"@generates/kdot": patch
3
4
+
5
+Fixing dangling dash issue on ns command
packages/kdot/lib/commands/ns.js
@@ -16,7 +16,7 @@ export default async function ns (input) {
16
const branch = await getGitBranch()
17
logger.debug('Branch:', branch)
18
if (branch) {
19
- namespace = slugify(input.prefix + branch).substr(0, 63)
+ namespace = slugify(input.prefix + branch).substr(0, 63).replace(/-$/, '')
20
logger.debug('Namespace:', namespace)
21
} else {
22
throw new Error('No namespace specified and could not be determined')
0 commit comments