@tsuga/cli 1.0.2 → 1.0.4

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.
Files changed (3) hide show
  1. package/README.md +12 -2
  2. package/dist/cli.js +103 -103
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -75,7 +75,7 @@ tsuga defaults reset
75
75
 
76
76
  ## Usage
77
77
 
78
- All resources follow the same CRUD pattern:
78
+ Most resources follow the same CRUD pattern:
79
79
 
80
80
  ```bash
81
81
  tsuga <resource> list
@@ -85,6 +85,13 @@ tsuga <resource> update <id> -f payload.json
85
85
  tsuga <resource> delete <id>
86
86
  ```
87
87
 
88
+ Read-only resources (for example `services`) support only:
89
+
90
+ ```bash
91
+ tsuga services list
92
+ tsuga services get <id>
93
+ ```
94
+
88
95
  You can also pass JSON inline with `-d`:
89
96
 
90
97
  ```bash
@@ -93,7 +100,7 @@ tsuga teams create -d '{"name": "Platform", "visibility": "public"}'
93
100
 
94
101
  ### Available resources
95
102
 
96
- `dashboards`, `ingestion-api-keys`, `monitors`, `notification-rules`, `notification-silences`, `retention-policies`, `routes`, `tag-policies`, `teams`
103
+ `dashboards`, `ingestion-api-keys`, `monitors`, `notification-rules`, `notification-silences`, `retention-policies`, `routes`, `services`, `tag-policies`, `teams`
97
104
 
98
105
  > Note: `ingestion-api-keys` does not support `get <id>`.
99
106
 
@@ -126,6 +133,9 @@ tsuga dashboards get abc-123
126
133
  # List dashboards filtered by owner
127
134
  tsuga dashboards list --owners team-1 team-2
128
135
 
136
+ # Get a specific service
137
+ tsuga services get abc-123
138
+
129
139
  # Create a notification rule from a file
130
140
  tsuga notification-rules create -f rule.json
131
141