Skip to content

Commit

Permalink
feat(utils): update jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 26, 2021
1 parent a91700b commit 83bec44
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
31 changes: 31 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"scope-enum": [
1,
"always",
[
"repo",
"dotnet",
"core",
"utils",
"typescript",
"ci",
"release"
]
],
"type-enum": [
1,
"always",
[
"test",
"docs",
"chore",
"feat",
"fix"
]
]
}
}
13 changes: 0 additions & 13 deletions commitlint.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions packages/utils/src/lib/parameters.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { cmdLineParameter } from './models';

/**
* Transforms an array of cmdLineParameter into a string.
* @param parameters Parameters to transform into CLI arguments
* @returns Parameter string to be appended to CLI command
*/
export function getParameterString(parameters: cmdLineParameter[]): string {
return parameters.reduce((acc, current) => {
if (typeof current.value === 'boolean' && current.value) {
Expand Down

0 comments on commit 83bec44

Please sign in to comment.