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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f85a2451232e1d21e616d56497f3a2eefcd7875525278e61821454ef72069d3
4
- data.tar.gz: 4849b6f1dfa072a46ff7855fd9bf637d6e28000324cc85aa737f852203fad5f9
3
+ metadata.gz: f1e7f218d16bd666c50e4ab3a19e4ea5c5df9206371e327106f8c4c0373be7ff
4
+ data.tar.gz: fb1efaadceb7e7a64fa777046240c307821f59f07c20fcbb2fd294a404921a81
5
5
  SHA512:
6
- metadata.gz: 41e07d72153230d31b6572e2392e747dc076d9accba1d4b37abadb1a14422d95a0df2e4d599a631be472195fa6772ec952898523eec08d03ffd597387a0896f6
7
- data.tar.gz: ee479f290a32beb230091d6647e40d540f5897b7db39ccb9f0bcba03c708d04c6a7cb7c61bfcad984d325ae79d3447c43a19137b5da9f7c2e2832c26976f6c5d
6
+ metadata.gz: a075df07eb710873424a4498420d98d1fc117119b2b67f49c086399250805073ec1b35a945d7fe0ae766acce401fb3819c02fd848708f254162907a46da4f489
7
+ data.tar.gz: c44e395e3d601a6756adfc693f27025d7f07b18cd596e53c5605c7177b917b019815a728706ef4f67deec653bdc1b272d86363ddd95296853708d39e4fef4f0c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DiscourseCli
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
@@ -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 news
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 SLUG`, `--tags TAG1,TAG2`
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 new-slug
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 SLUG`
39
+ Options: `--title TEXT`, `--raw TEXT`, `--category ID`
40
40
 
41
- Note: `--category` looks up category by slug or name. Updating raw content edits the topic's first post.
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_cli_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Case