@abapify/adt-plugin-gcts-cli 0.0.0 → 0.3.5

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 (2) hide show
  1. package/README.md +47 -1
  2. package/package.json +41 -3
package/README.md CHANGED
@@ -1,3 +1,49 @@
1
1
  # @abapify/adt-plugin-gcts-cli
2
2
 
3
- Placeholder. The real release is published via CI/CD.
3
+ CLI command-plugin for SAP **gCTS** (git-enabled CTS) — mirrors
4
+ [sapcli's `sap gcts` surface](https://github.com/jfilak/sapcli/blob/master/sap/cli/gcts.py).
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ bun add -D @abapify/adt-plugin-gcts-cli
10
+ ```
11
+
12
+ Then enable in `adt.config.ts`:
13
+
14
+ ```ts
15
+ export default {
16
+ commands: ['@abapify/adt-plugin-gcts-cli/commands/gcts'],
17
+ };
18
+ ```
19
+
20
+ ## Subcommands
21
+
22
+ | Command | Endpoint |
23
+ | ------------------------------------------------------- | ---------------------------------------------- |
24
+ | `adt gcts repo list` | GET `/repository` |
25
+ | `adt gcts repo create <rid> <url>` | POST `/repository` |
26
+ | `adt gcts repo clone <rid>` | POST `/repository/<rid>/clone` |
27
+ | `adt gcts repo delete <rid>` | DELETE `/repository/<rid>` |
28
+ | `adt gcts repo pull <rid>` | GET `/repository/<rid>/pullByCommit` |
29
+ | `adt gcts repo push <rid>` | GET `/repository/<rid>/push` |
30
+ | `adt gcts repo checkout <rid> <branch> [current]` | GET `/branches/<current>/switch?branch=<…>` |
31
+ | `adt gcts branch list <rid>` | GET `/repository/<rid>/branches` |
32
+ | `adt gcts branch create <rid> <name>` | POST `/repository/<rid>/branches` |
33
+ | `adt gcts branch delete <rid> <name>` | DELETE `/repository/<rid>/branches/<name>` |
34
+ | `adt gcts branch switch <rid> <target> [current]` | GET `/branches/<current>/switch?branch=<…>` |
35
+ | `adt gcts commit <rid> [--corrnr <TR>] [-d <pkg>] [-m]` | POST `/repository/<rid>/commit` |
36
+ | `adt gcts log <rid>` | GET `/repository/<rid>/getCommit` |
37
+ | `adt gcts objects <rid>` | GET `/repository/<rid>/getObjects` |
38
+ | `adt gcts config <rid> [get\|set\|unset\|list]` | GET/POST/DELETE `/repository/<rid>/config/...` |
39
+
40
+ All commands accept `--json` for machine-readable output.
41
+
42
+ ## See also
43
+
44
+ - [`@abapify/adt-plugin-gcts`](../adt-plugin-gcts) — file-format plugin (E06)
45
+ - [`@abapify/adt-contracts`](../adt-contracts) — `client.adt.gcts.*` namespace
46
+
47
+ ## License
48
+
49
+ MIT
package/package.json CHANGED
@@ -1,5 +1,43 @@
1
1
  {
2
2
  "name": "@abapify/adt-plugin-gcts-cli",
3
- "version": "0.0.0",
4
- "description": "Placeholder — real package is published via CI/CD (trusted publishing)."
5
- }
3
+ "version": "0.3.5",
4
+ "description": "CLI command plugin for SAP gCTS (git-enabled CTS) — mirrors sapcli's `sap gcts`",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "type": "module",
10
+ "types": "./dist/index.d.mts",
11
+ "exports": {
12
+ ".": "./dist/index.mjs",
13
+ "./package.json": "./package.json"
14
+ },
15
+ "nx": {
16
+ "name": "adt-plugin-gcts-cli"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md"
21
+ ],
22
+ "keywords": [
23
+ "sap",
24
+ "adt",
25
+ "abap",
26
+ "gcts",
27
+ "cts_abapvcs"
28
+ ],
29
+ "dependencies": {
30
+ "@abapify/adt-plugin": "0.3.5",
31
+ "@abapify/adt-contracts": "0.3.5",
32
+ "zod": "^3.23.8"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/abapify/adt-cli.git",
37
+ "directory": "packages/adt-plugin-gcts-cli"
38
+ },
39
+ "homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-plugin-gcts-cli#readme",
40
+ "bugs": {
41
+ "url": "https://github.com/abapify/adt-cli/issues"
42
+ }
43
+ }