@firestartr/cli 1.54.0-snapshot-6 → 1.54.0-snapshot-8

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/build/index.js CHANGED
@@ -357328,7 +357328,9 @@ class TFWorkspaceNormalizer extends Normalizer {
357328
357328
  async function normalizeModuleContent(tfRootModulePath) {
357329
357329
  let content = '';
357330
357330
  const files = {};
357331
- await crawl(tfRootModulePath, (entry) => {
357331
+ await crawl(tfRootModulePath,
357332
+ // bring all files, not only tf
357333
+ (entry) => {
357332
357334
  return entry.endsWith('.tf');
357333
357335
  }, (entry, data) => {
357334
357336
  files[entry] = data;
@@ -358104,10 +358106,26 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
358104
358106
  type: 'string',
358105
358107
  description: 'The github organization name',
358106
358108
  },
358109
+ name: {
358110
+ type: 'string',
358111
+ description: 'The github repo name',
358112
+ },
358113
+ orgPermissions: {
358114
+ type: 'string',
358115
+ description: 'The level of org Permission',
358116
+ },
358117
+ archiveOnDestroy: {
358118
+ type: 'boolean',
358119
+ description: 'whether this repo should be archived when the claim is deleted',
358120
+ },
358107
358121
  visibility: {
358108
358122
  type: 'string',
358109
358123
  enum: ['private', 'public', 'internal'],
358110
358124
  },
358125
+ description: {
358126
+ type: 'string',
358127
+ description: 'The purpose of this repo',
358128
+ },
358111
358129
  features: {
358112
358130
  type: 'array',
358113
358131
  items: {
@@ -358120,6 +358138,14 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
358120
358138
  secrets: {
358121
358139
  $ref: 'firestartr.dev://github/GithubComponentClaimSecrets',
358122
358140
  },
358141
+ topics: {
358142
+ type: 'array',
358143
+ items: {
358144
+ type: 'string',
358145
+ maxLength: 50,
358146
+ pattern: '^[a-z0-9][a-z0-9-]*$',
358147
+ },
358148
+ },
358123
358149
  },
358124
358150
  required: ['visibility', 'org'],
358125
358151
  },
@@ -362246,6 +362272,7 @@ function toJson_FirestartrGithubRepositorySpecRepo(obj) {
362246
362272
  'hasIssues': obj.hasIssues,
362247
362273
  'hasWiki': obj.hasWiki,
362248
362274
  'pages': obj.pages,
362275
+ 'topics': obj.topics?.map(y => y),
362249
362276
  'visibility': obj.visibility,
362250
362277
  'defaultBranch': obj.defaultBranch,
362251
362278
  'additionalBranches': obj.additionalBranches?.map(y => toJson_FirestartrGithubRepositorySpecRepoAdditionalBranches(y)),
@@ -364371,6 +364398,7 @@ class GithubRepositoryChart extends BaseGithubChart {
364371
364398
  defaultBranch: claim.providers.github?.branchStrategy?.defaultBranch,
364372
364399
  codeowners: createCodeOwnersData(claim),
364373
364400
  additionalBranches: claim.providers.github.additionalBranches || [],
364401
+ topics: claim.providers.github.topics || [],
364374
364402
  },
364375
364403
  actions,
364376
364404
  permissions: this.createPermissions(claim),
@@ -369379,7 +369407,7 @@ function provisionRepository(scope, fsGithubRepository) {
369379
369407
  allowAutoMerge: fsGithubRepository.spec.repo.allowAutoMerge,
369380
369408
  deleteBranchOnMerge: fsGithubRepository.spec.repo.deleteBranchOnMerge,
369381
369409
  autoInit: fsGithubRepository.spec.repo.autoInit,
369382
- archiveOnDestroy: true,
369410
+ archiveOnDestroy: fsGithubRepository.spec.repo.archiveOnDestroy,
369383
369411
  allowUpdateBranch: fsGithubRepository.spec.repo.allowUpdateBranch,
369384
369412
  hasIssues: fsGithubRepository.spec.repo.hasIssues,
369385
369413
  visibility: fsGithubRepository.spec.repo.visibility,
@@ -370405,7 +370433,7 @@ async function runTerraform(entity, command, stream) {
370405
370433
  // filter environment variables to exclude those starting with 'GITHUB'
370406
370434
  const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.startsWith('GITHUB')));
370407
370435
  return new Promise((ok, ko) => {
370408
- const terraformProcess = (0,external_child_process_.spawn)('terraform', [...command], {
370436
+ const terraformProcess = (0,external_child_process_.spawn)('tofu', [...command], {
370409
370437
  stdio: ['inherit', 'pipe', 'pipe'],
370410
370438
  cwd: workDir,
370411
370439
  env,
@@ -371805,7 +371833,7 @@ async function output(path, secrets) {
371805
371833
  }
371806
371834
  async function tfExec(path, args, secrets, extraArgs = ['-input=false'], stream) {
371807
371835
  return new Promise((ok, ko) => {
371808
- const tfProcess = (0,external_child_process_.spawn)('terraform', args.concat(extraArgs), {
371836
+ const tfProcess = (0,external_child_process_.spawn)('tofu', args.concat(extraArgs), {
371809
371837
  cwd: path,
371810
371838
  stdio: ['inherit', 'pipe', 'pipe'],
371811
371839
  });
@@ -1014,6 +1014,10 @@ export interface FirestartrGithubRepositorySpecRepo {
1014
1014
  * @schema FirestartrGithubRepositorySpecRepo#pages
1015
1015
  */
1016
1016
  readonly pages?: any;
1017
+ /**
1018
+ * @schema FirestartrGithubRepositorySpecRepo#topics
1019
+ */
1020
+ readonly topics?: string[];
1017
1021
  /**
1018
1022
  * @schema FirestartrGithubRepositorySpecRepo#visibility
1019
1023
  */
@@ -489,10 +489,26 @@ declare const schemas: {
489
489
  type: string;
490
490
  description: string;
491
491
  };
492
+ name: {
493
+ type: string;
494
+ description: string;
495
+ };
496
+ orgPermissions: {
497
+ type: string;
498
+ description: string;
499
+ };
500
+ archiveOnDestroy: {
501
+ type: string;
502
+ description: string;
503
+ };
492
504
  visibility: {
493
505
  type: string;
494
506
  enum: string[];
495
507
  };
508
+ description: {
509
+ type: string;
510
+ description: string;
511
+ };
496
512
  features: {
497
513
  type: string;
498
514
  items: {
@@ -505,6 +521,14 @@ declare const schemas: {
505
521
  secrets: {
506
522
  $ref: string;
507
523
  };
524
+ topics: {
525
+ type: string;
526
+ items: {
527
+ type: string;
528
+ maxLength: number;
529
+ pattern: string;
530
+ };
531
+ };
508
532
  };
509
533
  required: string[];
510
534
  $ref?: undefined;
@@ -19,10 +19,26 @@ declare const _default: {
19
19
  type: string;
20
20
  description: string;
21
21
  };
22
+ name: {
23
+ type: string;
24
+ description: string;
25
+ };
26
+ orgPermissions: {
27
+ type: string;
28
+ description: string;
29
+ };
30
+ archiveOnDestroy: {
31
+ type: string;
32
+ description: string;
33
+ };
22
34
  visibility: {
23
35
  type: string;
24
36
  enum: string[];
25
37
  };
38
+ description: {
39
+ type: string;
40
+ description: string;
41
+ };
26
42
  features: {
27
43
  type: string;
28
44
  items: {
@@ -35,6 +51,14 @@ declare const _default: {
35
51
  secrets: {
36
52
  $ref: string;
37
53
  };
54
+ topics: {
55
+ type: string;
56
+ items: {
57
+ type: string;
58
+ maxLength: number;
59
+ pattern: string;
60
+ };
61
+ };
38
62
  };
39
63
  required: string[];
40
64
  $ref?: undefined;
@@ -124,10 +124,26 @@ export declare const GithubSchemas: ({
124
124
  type: string;
125
125
  description: string;
126
126
  };
127
+ name: {
128
+ type: string;
129
+ description: string;
130
+ };
131
+ orgPermissions: {
132
+ type: string;
133
+ description: string;
134
+ };
135
+ archiveOnDestroy: {
136
+ type: string;
137
+ description: string;
138
+ };
127
139
  visibility: {
128
140
  type: string;
129
141
  enum: string[];
130
142
  };
143
+ description: {
144
+ type: string;
145
+ description: string;
146
+ };
131
147
  features: {
132
148
  type: string;
133
149
  items: {
@@ -140,6 +156,14 @@ export declare const GithubSchemas: ({
140
156
  secrets: {
141
157
  $ref: string;
142
158
  };
159
+ topics: {
160
+ type: string;
161
+ items: {
162
+ type: string;
163
+ maxLength: number;
164
+ pattern: string;
165
+ };
166
+ };
143
167
  };
144
168
  required: string[];
145
169
  $ref?: undefined;
@@ -28,6 +28,7 @@ export interface IGithubRepositoryClaim extends IComponentClaim {
28
28
  name: string;
29
29
  orphan: boolean;
30
30
  }[];
31
+ topics?: string[];
31
32
  };
32
33
  };
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.54.0-snapshot-6",
3
+ "version": "1.54.0-snapshot-8",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",