@trayai/tray-sync-cli 0.1.3 → 0.1.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.
- package/dist/cli.js +3 -1
- package/dist/views/banner.js +17 -0
- package/package.json +2 -9
package/dist/cli.js
CHANGED
|
@@ -10,13 +10,15 @@ import { projectCommand } from "./commands/project.js";
|
|
|
10
10
|
import { envCommand } from "./commands/env.js";
|
|
11
11
|
import { authCommand } from "./commands/auth.js";
|
|
12
12
|
import { promoteCommand } from "./commands/promote.js";
|
|
13
|
+
import { BANNER } from "./views/banner.js";
|
|
13
14
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
14
15
|
const pkg = JSON.parse(readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));
|
|
15
16
|
const program = new Command();
|
|
16
17
|
program
|
|
17
18
|
.name("tray")
|
|
18
19
|
.description("Mirror Tray projects to local files and promote them between Tray environments")
|
|
19
|
-
.version(pkg.version, "-v, --version")
|
|
20
|
+
.version(pkg.version, "-v, --version")
|
|
21
|
+
.addHelpText("beforeAll", (context) => (context.command === program ? BANNER : ""));
|
|
20
22
|
program.addCommand(initCommand);
|
|
21
23
|
program.addCommand(pullCommand);
|
|
22
24
|
program.addCommand(statusCommand);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const BANNER = `
|
|
2
|
+
┌───────────────────────────────────────────────────────────────────────────────────────┐
|
|
3
|
+
│ :. │
|
|
4
|
+
│ *######: . │
|
|
5
|
+
│ +#+ ## +##. │
|
|
6
|
+
│ .: ## *# = │
|
|
7
|
+
│ .############. +###* .*= +: .##= *# =*- +*: ##+ -*: *= │
|
|
8
|
+
│ ##* ##+ *#. :###+ .##- ### ##: +#= ##* *##= #* │
|
|
9
|
+
│ *#= ##= *# :#* *#. ## ## #* +#+ *#= #* │
|
|
10
|
+
│ .##. ##= *# :#* =#* .## :#*## :## ##= #* │
|
|
11
|
+
│ *##+ ##= :### :#* -####*## =## :## .#######= #* │
|
|
12
|
+
│ +#= │
|
|
13
|
+
│ +#+ │
|
|
14
|
+
│ │
|
|
15
|
+
└───────────────────────────────────────────────────────────────────────────────────────┘
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=banner.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trayai/tray-sync-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI tool to clone Tray projects and related assets to a local directory, and promote them between Tray environments",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tray": "dist/cli.js"
|
|
@@ -24,14 +24,7 @@
|
|
|
24
24
|
"pretest": "tsc -p tsconfig.test.json",
|
|
25
25
|
"test": "node --test dist-test/test/**/*.test.js",
|
|
26
26
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
27
|
-
"build-and-reinstall": "npm uninstall -g @trayai/tray-sync-cli --silent || true; npm run build && npm pack --silent | xargs -I{} sh -c 'npm install -g ./{} && rm ./{}'"
|
|
28
|
-
"gallery:env": "tsc -p tsconfig.test.json && node dist-test/test/manual/envOutputGallery.js",
|
|
29
|
-
"gallery:status": "tsc -p tsconfig.test.json && node dist-test/test/manual/statusOutputGallery.js",
|
|
30
|
-
"gallery:pull": "tsc -p tsconfig.test.json && node dist-test/test/manual/pullOutputGallery.js",
|
|
31
|
-
"gallery:project": "tsc -p tsconfig.test.json && node dist-test/test/manual/projectOutputGallery.js",
|
|
32
|
-
"gallery:init": "tsc -p tsconfig.test.json && node dist-test/test/manual/initOutputGallery.js",
|
|
33
|
-
"gallery:promote": "tsc -p tsconfig.test.json && node dist-test/test/manual/promoteOutputGallery.js",
|
|
34
|
-
"gallery:auth": "tsc -p tsconfig.test.json && node dist-test/test/manual/authOutputGallery.js"
|
|
27
|
+
"build-and-reinstall": "npm uninstall -g @trayai/tray-sync-cli --silent || true; npm run build && npm pack --silent | xargs -I{} sh -c 'npm install -g ./{} && rm ./{}'"
|
|
35
28
|
},
|
|
36
29
|
"license": "Apache-2.0",
|
|
37
30
|
"dependencies": {
|