@contrail/cli 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ $ npm install -g @contrail/cli
15
15
  $ contrail COMMAND
16
16
  running command...
17
17
  $ contrail (--version)
18
- @contrail/cli/2.0.8 darwin-arm64 node-v18.13.0
18
+ @contrail/cli/2.0.9 darwin-arm64 node-v18.13.0
19
19
  $ contrail --help [COMMAND]
20
20
  USAGE
21
21
  $ contrail COMMAND
@@ -49,14 +49,11 @@ async function exportGroups(fileLocation, overwrite) {
49
49
  groupPrincipals,
50
50
  });
51
51
  }
52
- console.log("saving groups:", JSON.stringify(groups));
53
52
  await saveData(groups, fileLocation, overwrite);
54
53
  }
55
54
  exports.exportGroups = exportGroups;
56
55
  async function saveData(data, fileLocation, overwrite) {
57
56
  const yamlStr = js_yaml_1.default.dump(data);
58
- console.log("file location:", fileLocation);
59
- console.log("final yml string:", yamlStr);
60
57
  const CURRENT_DIR = process.cwd();
61
58
  const pathToWrite = path.join(CURRENT_DIR, fileLocation);
62
59
  if (fs_1.default.existsSync(pathToWrite)) {
@@ -68,7 +65,6 @@ function getGroupPrincipals(group, allGroups, orgUsers) {
68
65
  if (!(group === null || group === void 0 ? void 0 : group.groupPrincipals)) {
69
66
  return [];
70
67
  }
71
- console.log("all groups:", allGroups.map(x => x.id));
72
68
  const principals = [];
73
69
  for (const principal of group.groupPrincipals) {
74
70
  const [type, id] = principal.principalReference.split(':');
@@ -86,7 +82,6 @@ function getGroupPrincipals(group, allGroups, orgUsers) {
86
82
  }
87
83
  else if (type === 'group') {
88
84
  const nestedGroup = allGroups.find(x => x.id === id);
89
- console.log("looking for group", id);
90
85
  principals.push({
91
86
  type: 'group',
92
87
  name: nestedGroup.name
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.8",
2
+ "version": "2.0.9",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",