@sap-ux/create 1.0.4 → 1.0.6

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
@@ -404,13 +404,45 @@ Options:
404
404
 
405
405
  --------------------------------
406
406
 
407
+ ## [`update`](#update)
408
+
409
+ Command group for updating saved resources. A subcommand is required.
410
+
411
+ Usage: `npx --yes @sap-ux/create@latest update [subcommand] [options]`
412
+
413
+ The available subcommands are: `system`
414
+
415
+
416
+ --------------------------------
417
+
418
+ ## [`update system`](#update-system)
419
+
420
+ Update an existing backend system in the saved systems store (`~/.fioritools`). The system is identified by its URL and optional SAP client.
421
+
422
+
423
+ Example:
424
+
425
+ `npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --name "New Name"`
426
+
427
+ `npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --client 100 --username newuser`
428
+
429
+ Options:
430
+ - `--url <string>` _(required)_ - URL of the backend system to update
431
+ - `--client <string>` - SAP client number to identify the system (optional)
432
+ - `--name <string>` - New display name for the system
433
+ - `--username <string>` - New username
434
+ - `--password <string>` - To avoid plain-text credentials in the shell's history, pass an env reference: --password env:MY_VAR
435
+ - `--clear-credentials` - Remove stored credentials from the system
436
+
437
+ --------------------------------
438
+
407
439
  ## [`change`](#change)
408
440
 
409
441
  Command group for changing existing SAP Fiori applications. A subcommand is required.
410
442
 
411
443
  Usage: `npx --yes @sap-ux/create@latest change [subcommand] [options]`
412
444
 
413
- The available subcommands are: `data-source`, `inbound` and `system`
445
+ The available subcommands are: `data-source` and `inbound`
414
446
 
415
447
  --------------------------------
416
448
 
@@ -447,27 +479,6 @@ Options:
447
479
 
448
480
  --------------------------------
449
481
 
450
- ## [`change system`](#change-system)
451
-
452
- Update an existing backend system in the saved systems store (`~/.fioritools`). The system is identified by its URL and optional SAP client.
453
-
454
-
455
- Example:
456
-
457
- `npx --yes @sap-ux/create@latest change system --url https://my-sap.example.com --name "New Name"`
458
-
459
- `npx --yes @sap-ux/create@latest change system --url https://my-sap.example.com --client 100 --username newuser`
460
-
461
- Options:
462
- - `--url <string>` _(required)_ - URL of the backend system to update
463
- - `--client <string>` - SAP client number to identify the system (optional)
464
- - `--name <string>` - New display name for the system
465
- - `--username <string>` - New username
466
- - `--password <string>` - To avoid plain-text credentials in the shell's history, pass an env reference: --password env:MY_VAR
467
- - `--clear-credentials` - Remove stored credentials from the system
468
-
469
- --------------------------------
470
-
471
482
  ## [`list`](#list)
472
483
 
473
484
  Command group for listing saved resources. A subcommand is required.
@@ -1,7 +1,6 @@
1
1
  import { Command } from 'commander';
2
2
  import { addChangeDataSourceCommand } from './change-data-source.js';
3
3
  import { addChangeInboundCommand } from './change-inbound.js';
4
- import { addSystemUpdateCommand } from './system.js';
5
4
  /**
6
5
  * Return 'create-fiori change *' commands. Commands include also the handler action.
7
6
  *
@@ -11,7 +10,6 @@ export function getChangeCommands() {
11
10
  const changeCommands = new Command('change');
12
11
  addChangeDataSourceCommand(changeCommands);
13
12
  addChangeInboundCommand(changeCommands);
14
- addSystemUpdateCommand(changeCommands);
15
13
  return changeCommands;
16
14
  }
17
15
  //# sourceMappingURL=index.js.map
package/dist/cli/index.js CHANGED
@@ -11,6 +11,7 @@ import { getChangeCommands } from './change/index.js';
11
11
  import { getConvertCommands } from './convert/index.js';
12
12
  import { getListCommands } from './list/index.js';
13
13
  import { getGetCommands } from './get/index.js';
14
+ import { getUpdateCommands } from './update/index.js';
14
15
  /*
15
16
  * We've chosen 'commander' over 'minimist' and 'yargs' for this CLI implementation. Reasons:
16
17
  * (if it still up: https://npmtrends.com/commander-vs-minimist-vs-yargs)
@@ -88,6 +89,12 @@ function getCommanderProgram() {
88
89
  Usage: \`npx --yes @sap-ux/create@latest remove [subcommand] [options]\`
89
90
  The available subcommands are: ${getFeatureSummary(removeCommands.commands)}\n`);
90
91
  program.addCommand(removeCommands);
92
+ // Handler for create-fiori update <feature> ..
93
+ const updateCommands = getUpdateCommands();
94
+ updateCommands.description(`Command group for updating saved resources. A subcommand is required.
95
+ Usage: \`npx --yes @sap-ux/create@latest update [subcommand] [options]\`
96
+ The available subcommands are: ${getFeatureSummary(updateCommands.commands)}\n`);
97
+ program.addCommand(updateCommands);
91
98
  // Handler for create-fiori change <feature> ..
92
99
  const changeCommands = getChangeCommands();
93
100
  changeCommands.description(`Command group for changing existing SAP Fiori applications. A subcommand is required.
@@ -0,0 +1,8 @@
1
+ import { Command } from 'commander';
2
+ /**
3
+ * Return 'create-fiori update *' commands. Commands include also the handler action.
4
+ *
5
+ * @returns - commander command containing update <feature> commands
6
+ */
7
+ export declare function getUpdateCommands(): Command;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { Command } from 'commander';
2
+ import { addSystemUpdateCommand } from './system.js';
3
+ /**
4
+ * Return 'create-fiori update *' commands. Commands include also the handler action.
5
+ *
6
+ * @returns - commander command containing update <feature> commands
7
+ */
8
+ export function getUpdateCommands() {
9
+ const updateCommands = new Command('update');
10
+ addSystemUpdateCommand(updateCommands);
11
+ return updateCommands;
12
+ }
13
+ //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import type { Command } from 'commander';
2
2
  /**
3
- * Add the "change system" subcommand to a passed command.
3
+ * Add the "update system" subcommand to a passed command.
4
4
  * Updates an existing backend system in the saved systems store (~/.fioritools).
5
5
  * The system is identified by URL and optional SAP client.
6
6
  *
@@ -4,7 +4,7 @@ import { replaceEnvVariables } from '@sap-ux/ui5-config';
4
4
  import { config as loadEnvConfig } from 'dotenv';
5
5
  import { getLogger } from '../../tracing/index.js';
6
6
  /**
7
- * Add the "change system" subcommand to a passed command.
7
+ * Add the "update system" subcommand to a passed command.
8
8
  * Updates an existing backend system in the saved systems store (~/.fioritools).
9
9
  * The system is identified by URL and optional SAP client.
10
10
  *
@@ -15,8 +15,8 @@ export function addSystemUpdateCommand(cmd) {
15
15
  .description(`Update an existing backend system in the saved systems store (\`~/.fioritools\`). The system is identified by its URL and optional SAP client.\n
16
16
 
17
17
  Example:
18
- \`npx --yes @sap-ux/create@latest change system --url https://my-sap.example.com --name "New Name"\`
19
- \`npx --yes @sap-ux/create@latest change system --url https://my-sap.example.com --client 100 --username newuser\``)
18
+ \`npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --name "New Name"\`
19
+ \`npx --yes @sap-ux/create@latest update system --url https://my-sap.example.com --client 100 --username newuser\``)
20
20
  .requiredOption('--url <string>', 'URL of the backend system to update')
21
21
  .option('--client <string>', 'SAP client number to identify the system (optional)')
22
22
  .option('--name <string>', 'New display name for the system')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -37,19 +37,19 @@
37
37
  "@sap-ux/abap-deploy-config-writer": "1.0.1",
38
38
  "@sap-ux/adp-tooling": "1.0.3",
39
39
  "@sap-ux/btp-utils": "2.0.0",
40
- "@sap-ux/app-config-writer": "1.0.1",
41
40
  "@sap-ux/cap-config-writer": "1.0.2",
41
+ "@sap-ux/app-config-writer": "1.0.1",
42
42
  "@sap-ux/logger": "1.0.0",
43
43
  "@sap-ux/mockserver-config-writer": "1.0.1",
44
44
  "@sap-ux/odata-service-writer": "1.0.1",
45
- "@sap-ux/preview-middleware": "1.0.4",
45
+ "@sap-ux/preview-middleware": "1.0.5",
46
46
  "@sap-ux/project-access": "2.0.1",
47
- "@sap-ux/system-access": "1.0.0",
48
47
  "@sap-ux/store": "2.0.0",
48
+ "@sap-ux/system-access": "1.0.0",
49
49
  "@sap-ux/ui5-config": "1.0.0",
50
- "@sap-ux/flp-config-inquirer": "1.0.3",
51
50
  "@sap-ux/nodejs-utils": "1.0.1",
52
- "@sap-ux/axios-extension": "2.0.0"
51
+ "@sap-ux/axios-extension": "2.0.0",
52
+ "@sap-ux/flp-config-inquirer": "1.0.3"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@jest/globals": "30.3.0",