@shoper/cli 0.5.2-6 → 0.5.2-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/README.md CHANGED
@@ -1,3 +1,5 @@
1
- # shoper-cli
1
+ ![Shoper CLI](.docs/images/shoper-for-developers.svg)
2
2
 
3
- Comming soon...
3
+ # Shoper CLI
4
+
5
+ Learn more in the [commands docs](https://storefront.developers.shoper.pl/cli/)
@@ -0,0 +1,24 @@
1
+ import { Help } from '@oclif/core';
2
+ import figlet from 'figlet';
3
+ import { renderOnce } from '../../ui/ui_utils.js';
4
+ import { Gradient } from '../../ui/gradient.js';
5
+ import React from 'react';
6
+ import { Text } from '../../ui/text.js';
7
+ export default class CliHelp extends Help {
8
+ async showCommandHelp(cmd) {
9
+ this._showBanner();
10
+ super.showCommandHelp(cmd);
11
+ }
12
+ async showTopicHelp(topic) {
13
+ this._showBanner();
14
+ super.showTopicHelp(topic);
15
+ }
16
+ async showRootHelp() {
17
+ this._showBanner();
18
+ super.showRootHelp();
19
+ }
20
+ _showBanner() {
21
+ renderOnce(React.createElement(Gradient, { name: "retro" },
22
+ React.createElement(Text, null, figlet.textSync('Shoper CLI', { font: 'ANSI Regular' }))));
23
+ }
24
+ }
package/build/index.js CHANGED
@@ -11,6 +11,7 @@ import { CliUIDumpCommand } from './cli/commands/cli_ui_dump_command.js';
11
11
  import { CliAuthLogoutCommand } from './cli/commands/auth/cli_auth_logout_command.js';
12
12
  import { getApiSync } from './utils/get_api.js';
13
13
  import { LOGGER_API_NAME } from './cli/utilities/features/logger/logger_constants.js';
14
+ import './cli/class/cli_help.js';
14
15
  //TODO
15
16
  //@ts-ignore
16
17
  if (typeof global.crypto !== 'object') {
@@ -0,0 +1,2 @@
1
+ import InkGradient from 'ink-gradient';
2
+ export const Gradient = InkGradient;
package/oclif.config.js CHANGED
@@ -3,6 +3,7 @@ export default {
3
3
  scope: 'shoper',
4
4
  dirname: 'shoper_cli',
5
5
  plugins: ['@oclif/plugin-help', '@oclif/plugin-warn-if-update-available', '@oclif/plugin-version'],
6
+ helpClass: './build/cli/class/cli_help.js',
6
7
  'warn-if-update-available': {
7
8
  frequency: 1,
8
9
  frequencyUnit: 'days',
package/package.json CHANGED
@@ -2,10 +2,15 @@
2
2
  "name": "@shoper/cli",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "0.5.2-6",
5
+ "version": "0.5.2-8",
6
6
  "description": "CLI tool for Shoper",
7
7
  "author": "Joanna Firek",
8
8
  "license": "MIT",
9
+ "keywords": [
10
+ "shoper",
11
+ "shoper-cli",
12
+ "shoper-for-developers"
13
+ ],
9
14
  "bin": {
10
15
  "shoper": "./bin/run.js"
11
16
  },
@@ -48,6 +53,7 @@
48
53
  "fs-tree-diff": "2.0.1",
49
54
  "ink": "6.0.1",
50
55
  "ink-link": "4.1.0",
56
+ "ink-gradient": "3.0.0",
51
57
  "inquirer": "12.5.2",
52
58
  "inquirer-select-line": "1.1.3",
53
59
  "is-hidden-file": "1.1.2",
@@ -68,7 +74,8 @@
68
74
  "uuid": "11.1.0",
69
75
  "walk-sync": "3.0.0",
70
76
  "yauzl": "3.2.0",
71
- "yazl": "3.3.1"
77
+ "yazl": "3.3.1",
78
+ "figlet": "1.9.4"
72
79
  },
73
80
  "devDependencies": {
74
81
  "@babel/core": "7.27.1",