-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Node 16 upgrade && eslint upgrade
- Loading branch information
Showing
40 changed files
with
235 additions
and
831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,15 @@ const COMMAND_NAMESPACE = Joi.string() | |
.description('Namespace of the Command') | ||
.example('chefdk'); | ||
|
||
const COMMAND_NAME = Joi.string() | ||
.regex(Regex.COMMAND_NAME) | ||
.max(64) | ||
.description('Name of the Command') | ||
.example('knife'); | ||
const COMMAND_NAME = Joi.string().regex(Regex.COMMAND_NAME).max(64).description('Name of the Command').example('knife'); | ||
|
||
const COMMAND_TAG_NAME = Joi.string() | ||
.regex(Regex.COMMAND_TAG_NAME) | ||
.max(30) | ||
.description('Name of the Command Tag') | ||
.example('latest'); | ||
|
||
const COMMAND_VERSION = Joi.string() | ||
.regex(Regex.VERSION) | ||
.max(16) | ||
.description('Version of the Command') | ||
.example('1.2'); | ||
const COMMAND_VERSION = Joi.string().regex(Regex.VERSION).max(16).description('Version of the Command').example('1.2'); | ||
|
||
const COMMAND_EXACT_VERSION = Joi.string() | ||
.regex(Regex.EXACT_VERSION) | ||
|
@@ -45,11 +37,7 @@ const COMMAND_USAGE = Joi.string() | |
.description('Usage and arguments of the command') | ||
.example('sd_cmd exec foo/bar@1 -h <host> -d <domain>'); | ||
|
||
const COMMAND_MAINTAINER = Joi.string() | ||
.email() | ||
.max(64) | ||
.description('Maintainer of the Command') | ||
.example('[email protected]'); | ||
const COMMAND_MAINTAINER = Joi.string().email().max(64).description('Maintainer of the Command').example('[email protected]'); | ||
|
||
const COMMAND_FORMAT = Joi.string() | ||
.valid('habitat', 'docker', 'binary') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.