Skip to content

Commit e9e18b4

Browse files
Add postinstall script
1 parent dd0fb61 commit e9e18b4

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ketrwu/simplelogin-cli",
33
"description": "Unofficial SimpleLogin CLI",
4-
"version": "0.1.2",
4+
"version": "0.1.3",
55
"author": "Kenneth Wußmann",
66
"bin": {
77
"sl": "./bin/run.js"
@@ -45,7 +45,8 @@
4545
"files": [
4646
"./bin",
4747
"./dist",
48-
"./oclif.manifest.json"
48+
"./oclif.manifest.json",
49+
"./scripts"
4950
],
5051
"homepage": "https://github.com/KennethWussmann/simplelogin-cli",
5152
"license": "MIT",
@@ -66,6 +67,7 @@
6667
"build": "shx rm -rf dist && tsc -b",
6768
"build:watch": "shx rm -rf dist && tsc -b -w",
6869
"lint": "eslint",
70+
"postinstall": "node scripts/postinstall.js",
6971
"postpack": "shx rm -f oclif.manifest.json",
7072
"pack:tarballs": "oclif pack tarballs",
7173
"posttest": "pnpm run lint",

scripts/postinstall.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
console.log(`
4+
┌─────────────────────────────────────────────────────────────┐
5+
│ │
6+
│ ✓ SimpleLogin CLI installed successfully! │
7+
│ │
8+
│ Note: This is an unofficial CLI tool, not provided by │
9+
│ the official SimpleLogin team. │
10+
│ │
11+
│ Need your API key? │
12+
│ https://app.simplelogin.io/dashboard/api_key │
13+
│ │
14+
│ Documentation & Bug Reports: │
15+
│ https://github.com/KennethWussmann/simplelogin-cli │
16+
│ │
17+
├─────────────────────────────────────────────────────────────┤
18+
│ │
19+
│ Get started in 3 steps: │
20+
│ │
21+
│ 1. Authenticate: │
22+
│ $ sl login │
23+
│ │
24+
│ 2. Create your first alias: │
25+
│ $ sl alias create --note "My first alias" │
26+
│ │
27+
│ 3. Explore all commands: │
28+
│ $ sl help │
29+
│ │
30+
└─────────────────────────────────────────────────────────────┘
31+
`);

0 commit comments

Comments
 (0)