@capraconsulting/cals-cli 3.13.1 → 3.15.0

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.
Files changed (51) hide show
  1. package/README.md +42 -33
  2. package/lib/cals-cli.mjs +714 -2497
  3. package/lib/cals-cli.mjs.map +1 -1
  4. package/lib/cli/commands/{github/sync.d.ts → sync.d.ts} +1 -1
  5. package/lib/cli/reporter.d.ts +5 -6
  6. package/lib/cli/util.d.ts +1 -6
  7. package/lib/config.d.ts +0 -2
  8. package/lib/definition/index.d.ts +1 -1
  9. package/lib/definition/types.d.ts +0 -52
  10. package/lib/github/index.d.ts +0 -2
  11. package/lib/github/service.d.ts +2 -67
  12. package/lib/github/types.d.ts +0 -63
  13. package/lib/github/util.d.ts +0 -1
  14. package/lib/index.d.ts +0 -9
  15. package/lib/index.es.js +8 -1323
  16. package/lib/index.es.js.map +1 -1
  17. package/lib/index.js +8 -1323
  18. package/lib/index.js.map +1 -1
  19. package/package.json +7 -19
  20. package/lib/cli/commands/definition/util.d.ts +0 -6
  21. package/lib/cli/commands/definition/util.test.d.ts +0 -1
  22. package/lib/cli/commands/github/analyze-directory.d.ts +0 -3
  23. package/lib/cli/commands/github/configure.d.ts +0 -3
  24. package/lib/cli/commands/github/generate-clone-commands.d.ts +0 -3
  25. package/lib/cli/commands/github/list-pull-requests-stats.d.ts +0 -3
  26. package/lib/cli/commands/github/list-repos.d.ts +0 -3
  27. package/lib/cli/commands/github/list-webhooks.d.ts +0 -3
  28. package/lib/cli/commands/github/set-token.d.ts +0 -3
  29. package/lib/cli/commands/github/util.d.ts +0 -3
  30. package/lib/cli/commands/github.d.ts +0 -3
  31. package/lib/cli/commands/snyk/report.d.ts +0 -3
  32. package/lib/cli/commands/snyk/set-token.d.ts +0 -3
  33. package/lib/cli/commands/snyk/sync.d.ts +0 -3
  34. package/lib/cli/commands/snyk.d.ts +0 -3
  35. package/lib/github/changeset/changeset.d.ts +0 -21
  36. package/lib/github/changeset/execute.d.ts +0 -10
  37. package/lib/github/changeset/types.d.ts +0 -88
  38. package/lib/snyk/index.d.ts +0 -3
  39. package/lib/snyk/service.d.ts +0 -30
  40. package/lib/snyk/token.d.ts +0 -11
  41. package/lib/snyk/types.d.ts +0 -62
  42. package/lib/snyk/util.d.ts +0 -3
  43. package/lib/snyk/util.test.d.ts +0 -1
  44. package/lib/testing/executor.d.ts +0 -25
  45. package/lib/testing/index.d.ts +0 -2
  46. package/lib/testing/lib.d.ts +0 -63
  47. /package/lib/cli/commands/{definition/dump-setup.d.ts → auth.d.ts} +0 -0
  48. /package/lib/cli/commands/{definition.d.ts → clone.d.ts} +0 -0
  49. /package/lib/cli/commands/{definition/validate.d.ts → groups.d.ts} +0 -0
  50. /package/lib/cli/commands/{delete-cache.d.ts → repos.d.ts} +0 -0
  51. /package/lib/cli/commands/{getting-started.d.ts → topics.d.ts} +0 -0
package/README.md CHANGED
@@ -13,52 +13,61 @@ It is recommended to use `npx` over global install to ensure you
13
13
  always run the latest version. If you install it globally remember
14
14
  to update it before running.
15
15
 
16
- ## Build
16
+ ## Commands
17
17
 
18
- Build and verify:
18
+ ### Authentication
19
19
 
20
- ```sh
21
- $ make # or "make build"
20
+ Set your GitHub token (will be stored in the OS keychain):
21
+
22
+ ```bash
23
+ cals auth
22
24
  ```
23
25
 
24
- ## Contributing
26
+ ### List repositories
25
27
 
26
- This project uses [semantic release](https://semantic-release.gitbook.io/semantic-release/)
27
- to automate releases and follows
28
- [Git commit guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit)
29
- from the Angular project.
28
+ ```bash
29
+ cals repos --org capralifecycle
30
+ cals repos --org capralifecycle --compact
31
+ cals repos --org capralifecycle --csv
32
+ ```
33
+
34
+ ### List repository groups
35
+
36
+ ```bash
37
+ cals groups --org capralifecycle
38
+ ```
39
+
40
+ ### Generate clone commands
30
41
 
31
- Version numbers depend on the commit type and footers: https://github.com/semantic-release/commit-analyzer/blob/75c9c87c88772d7ded4ca9614852b42519e41931/lib/default-release-rules.js#L7-L12
42
+ Generate clone commands (pipe to bash to execute):
32
43
 
33
- ## Goals of CLI
44
+ ```bash
45
+ cals clone --org capralifecycle --all | bash
46
+ cals clone --org capralifecycle mygroup | bash
47
+ ```
34
48
 
35
- - Provide an uniform way of consistently doing repeatable CALS tasks
36
- - Provide simple guidelines to improve the experience for developers
37
- - A tool that everybody uses and gets ownership of
38
- - Automate repeatable CALS tasks as we go
49
+ ### Sync repositories
39
50
 
40
- ## Ideas and future work
51
+ Pull latest changes for all repositories in a directory managed by a `.cals.yaml` manifest:
41
52
 
42
- - Automate onboarding of people
43
- - Granting access to various resources: AWS, GitHub, Confluence, JIRA, Slack, ...
44
- - Automate offboarding of people
45
- - Automate generation of new projects/resources
46
- - Creating GitHub repos, giving permissions etc
47
- - Slack channels
48
- - AWS account and structure
49
- - Checklist for manual processes
50
- - AWS infrastructure management, e.g. scripts such as https://github.com/capralifecycle/rvr-aws-infrastructure/blob/master/rvr/create-stack.sh
51
- - `cals aws ...`
53
+ ```bash
54
+ cals sync
55
+ cals sync --clone # Prompt to clone missing repos
56
+ ```
52
57
 
53
- ### Snyk management
58
+ ## Build
54
59
 
55
- https://snyk.docs.apiary.io/reference/projects
60
+ Build and verify:
56
61
 
57
- - [ ] Automatically set up project in Snyk
58
- - [x] Report of which repos are in Snyk and which is not
59
- - [ ] Detect active vs disabled projects in Snyk (no way through API now?)
60
- - [x] Report issues in Snyk grouped by our projects
62
+ ```sh
63
+ $ make # or "make build"
64
+ ```
61
65
 
62
66
  ## Contributing
63
67
 
64
- This project doesn't currently accept contributions. For inquiries, please contact the maintainers at [Slack](https://liflig.slack.com/archives/C02T4KTPYS2).
68
+ This project uses [semantic release](https://semantic-release.gitbook.io/semantic-release/)
69
+ to automate releases and follows
70
+ [Git commit guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit)
71
+ from the Angular project.
72
+
73
+ For inquiries, please contact the maintainers at [Slack](https://liflig.slack.com/archives/C02T4KTPYS2).