discourse_cli_tool 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/lib/discourse_cli/version.rb +1 -1
- data/skill/dsc/references/topics.md +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1e7f218d16bd666c50e4ab3a19e4ea5c5df9206371e327106f8c4c0373be7ff
|
|
4
|
+
data.tar.gz: fb1efaadceb7e7a64fa777046240c307821f59f07c20fcbb2fd294a404921a81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a075df07eb710873424a4498420d98d1fc117119b2b67f49c086399250805073ec1b35a945d7fe0ae766acce401fb3819c02fd848708f254162907a46da4f489
|
|
7
|
+
data.tar.gz: c44e395e3d601a6756adfc693f27025d7f07b18cd596e53c5605c7177b917b019815a728706ef4f67deec653bdc1b272d86363ddd95296853708d39e4fef4f0c
|
|
@@ -19,26 +19,26 @@ dsc topics show ID --json
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
dsc topics create --title "Hello World" --raw "Content here"
|
|
22
|
-
dsc topics create --title "Hello World" --category
|
|
22
|
+
dsc topics create --title "Hello World" --category 4
|
|
23
23
|
dsc topics create --title "Hello World" --tags "tag1,tag2"
|
|
24
24
|
dsc topics create --title "Hello World" # opens $EDITOR
|
|
25
25
|
echo "Content" | dsc topics create --title "Hello World" # from stdin
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Options: `--title` (required), `--raw TEXT`, `--category
|
|
28
|
+
Options: `--title` (required), `--raw TEXT`, `--category ID`, `--tags TAG1,TAG2`
|
|
29
29
|
|
|
30
30
|
## Update
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
dsc topics update ID --title "New Title"
|
|
34
34
|
dsc topics update ID --raw "New content" # edits first post, opens $EDITOR if omitted
|
|
35
|
-
dsc topics update ID --category
|
|
35
|
+
dsc topics update ID --category 4
|
|
36
36
|
dsc topics update ID --title "New Title" --raw "New content"
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Options: `--title TEXT`, `--raw TEXT`, `--category
|
|
39
|
+
Options: `--title TEXT`, `--raw TEXT`, `--category ID`
|
|
40
40
|
|
|
41
|
-
Note: `--category`
|
|
41
|
+
Note: `--category` takes an integer category ID (use `dsc categories list` to find IDs). Updating raw content edits the topic's first post.
|
|
42
42
|
|
|
43
43
|
When only `--title` or `--category` is given (no `--raw`, no piped stdin), content is left unchanged.
|
|
44
44
|
|