@trayai/tray-sync-cli 0.0.16 → 0.0.18

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 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.0.16",
3
+ "version": "0.0.18",
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"