You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2020. It is now read-only.
* replace any with interface
* correct the type definition for IVariableGroupDataVariable[]
* [REFACTOR] making code compact
* add test to create-variable-group command
* breaking larger function in scaffold class into smaller one, so we can add tests
* simplier commander interface
* using type guard in hasValue function
* incorporate Evan's feedback
* fix jsdoc
* fixed the problem where definition.yaml file is not created
Co-authored-by: Yvonne Radsmikham <yvonne.radsmikham@gmail.com>
"You must specify each of the variables 'name', 'source', 'version', 'template' in order to scaffold out a deployment."
34
+
);
35
+
returnfalse;
36
+
}
37
+
logger.info(
38
+
"All required options are configured via command line for scaffolding, expecting public remote repository for terraform templates or PAT embedded in source URL."
39
+
);
40
+
}
41
+
returntrue;
42
+
};
43
+
44
+
// Construct the source based on the the passed configurations of spk-config.yaml
"All required options are configured via command line for scaffolding, expecting public remote repository for terraform templates or PAT embedded in source URL."
48
-
);
49
-
}else{
50
-
logger.error(
51
-
"You must specify each of the variables 'name', 'source', 'version', 'template' in order to scaffold out a deployment."
52
-
);
53
-
}
54
-
}else{
55
-
if(!opts.source){
56
-
// Construct the source based on the the passed configurations of spk-config.yaml
57
-
opts.source=
58
-
"https://spk:"+
59
-
config.azure_devops.access_token+
60
-
"@"+
61
-
config.azure_devops.infra_repository;
62
-
logger.info(
63
-
`Infrastructure repository detected from initialized spk-config.yaml.`
64
-
);
65
-
}
66
-
}
67
-
/* scaffoldDefinition will take in a definition object with a
68
-
null configuration. Hence, the first index is "" */
"description": "Create a new variable group in Azure DevOps project with specific variables (ACR name, HLD Repo name, Personal Access Token, Service Principal id, Service Principal password, and Azure AD tenant id)",
5
+
"options": [
6
+
{
7
+
"arg": "-r, --registry-name <registry-name>",
8
+
"description": "The name of the existing Azure Container Registry.",
9
+
"required": true
10
+
},
11
+
{
12
+
"arg": "-d, --hld-repo-url <hld-repo-url>",
13
+
"description": "The high level definition (HLD) git repo url; falls back to azure_devops.org in spk config.",
0 commit comments