activitysmith-cli 0.1.0 → 0.1.1
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 +41 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Set `ACTIVITYSMITH_API_KEY` or pass `--api-key`.
|
|
|
18
18
|
activitysmith --help
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
### Send Push
|
|
21
|
+
### Send Push Notification
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
activitysmith push \
|
|
@@ -33,6 +33,18 @@ activitysmith activity start \
|
|
|
33
33
|
--content-state '{"title":"Deploy","subtitle":"start","numberOfSteps":4,"currentStep":1,"type":"segmented_progress","color":"yellow"}'
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
Or use flags:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
activitysmith activity start \
|
|
40
|
+
--title "Deploy" \
|
|
41
|
+
--subtitle "start" \
|
|
42
|
+
--number-of-steps 4 \
|
|
43
|
+
--current-step 1 \
|
|
44
|
+
--type segmented_progress \
|
|
45
|
+
--color yellow
|
|
46
|
+
```
|
|
47
|
+
|
|
36
48
|
### Update Live Activity
|
|
37
49
|
|
|
38
50
|
```bash
|
|
@@ -41,6 +53,16 @@ activitysmith activity update \
|
|
|
41
53
|
--content-state '{"title":"Deploy","subtitle":"step 2","currentStep":2}'
|
|
42
54
|
```
|
|
43
55
|
|
|
56
|
+
Or use flags:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
activitysmith activity update \
|
|
60
|
+
--activity-id "<activityId>" \
|
|
61
|
+
--title "Deploy" \
|
|
62
|
+
--subtitle "step 2" \
|
|
63
|
+
--current-step 2
|
|
64
|
+
```
|
|
65
|
+
|
|
44
66
|
### End Live Activity
|
|
45
67
|
|
|
46
68
|
```bash
|
|
@@ -49,12 +71,23 @@ activitysmith activity end \
|
|
|
49
71
|
--content-state '{"title":"Deploy","subtitle":"done","currentStep":4,"autoDismissMinutes":3}'
|
|
50
72
|
```
|
|
51
73
|
|
|
74
|
+
Or use flags:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
activitysmith activity end \
|
|
78
|
+
--activity-id "<activityId>" \
|
|
79
|
+
--title "Deploy" \
|
|
80
|
+
--subtitle "done" \
|
|
81
|
+
--current-step 4 \
|
|
82
|
+
--auto-dismiss-minutes 3
|
|
83
|
+
```
|
|
84
|
+
|
|
52
85
|
### JSON Output
|
|
53
86
|
|
|
54
87
|
```bash
|
|
55
88
|
activitysmith push --title "Hello" --json
|
|
56
89
|
```
|
|
57
|
-
|
|
90
|
+
|
|
58
91
|
## Aliases
|
|
59
92
|
|
|
60
93
|
The CLI installs two bin names:
|
|
@@ -80,6 +113,12 @@ Or use flags to build the payload:
|
|
|
80
113
|
- `--step-color <color>`
|
|
81
114
|
- `--auto-dismiss-minutes <number>`
|
|
82
115
|
|
|
116
|
+
Required fields:
|
|
117
|
+
|
|
118
|
+
- `activity start`: `title`, `numberOfSteps`, `currentStep`, `type`
|
|
119
|
+
- `activity update`: `title`, `currentStep`
|
|
120
|
+
- `activity end`: `title`, `currentStep`
|
|
121
|
+
|
|
83
122
|
## Output
|
|
84
123
|
|
|
85
124
|
Use `--json` for machine-readable output.
|
package/package.json
CHANGED