@statocysts/cli 0.3.0 → 0.4.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-PRESENT Ming Lin <https://github.com/enpitsuLin>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -39,31 +39,31 @@ The message content is determined in the following order:
39
39
  ### Send to a single URL
40
40
 
41
41
  ```bash
42
- statocysts -u "slack://webhook/xxx/yyy/zzz" -m "Hello World"
42
+ stato -u "slack://webhook/xxx/yyy/zzz" -m "Hello World"
43
43
  ```
44
44
 
45
45
  ### Send to multiple URLs
46
46
 
47
47
  ```bash
48
- statocysts -u "slack://webhook/xxx/yyy/zzz" -u "json://example.com/api/notify" -m "Hello World"
48
+ stato -u "slack://webhook/xxx/yyy/zzz" -u "json://example.com/api/notify" -m "Hello World"
49
49
  ```
50
50
 
51
51
  ### Read message from file
52
52
 
53
53
  ```bash
54
- statocysts -u "slack://webhook/xxx/yyy/zzz" -f message.txt
54
+ stato -u "slack://webhook/xxx/yyy/zzz" -f message.txt
55
55
  ```
56
56
 
57
57
  ### Read message from stdin
58
58
 
59
59
  ```bash
60
- echo "Hello World" | statocysts -u "slack://webhook/xxx/yyy/zzz"
60
+ echo "Hello World" | stato -u "slack://webhook/xxx/yyy/zzz"
61
61
  ```
62
62
 
63
63
  ### Use with pipeline
64
64
 
65
65
  ```bash
66
- cat deployment.log | statocysts -u "slack://webhook/xxx/yyy/zzz"
66
+ cat deployment.log | stato -u "slack://webhook/xxx/yyy/zzz"
67
67
  ```
68
68
 
69
69
  ## Supported Services
package/dist/cli.mjs CHANGED
@@ -63,7 +63,7 @@ async function sendNotifications(urls, message) {
63
63
  }
64
64
  }
65
65
  async function main() {
66
- const argv = await yargs(hideBin(process.argv)).scriptName("statocysts").usage("$0 -u <url> [-m <message> | -f <file>]").option("url", {
66
+ const argv = await yargs(hideBin(process.argv)).scriptName("stato").usage("$0 -u <url> [-m <message> | -f <file>]").option("url", {
67
67
  alias: "u",
68
68
  type: "string",
69
69
  array: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@statocysts/cli",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "description": "CLI for statocysts notification library",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/octoplorer/statocysts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "yargs": "^18.0.0",
34
- "statocysts": "0.3.0"
34
+ "statocysts": "0.4.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^22.0.0",