pagecord-cli 0.3.3 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e49c84bdd83870e36e7d68b218fd211dcae477a6b5b7afca0649785651f7bc2
4
- data.tar.gz: c0f1f731273d36f8bc9626c5f5f7b3f596b34ca647187140b20afea957c88e42
3
+ metadata.gz: 19a08d2465d20f5f6b630f2cddd3d1d24c708ce88c4c398b5f9b3bd280627bb0
4
+ data.tar.gz: f3a94234b517171e5ebbcbd8847f06800dc794f9eb65e1071a0572fc5a658ff1
5
5
  SHA512:
6
- metadata.gz: 97a1e5baf19415337cf2a8d0a97bb888394f3550d2b6ce85f29e7039d1aae9ad58b30a5883f1ce63bcae691211c847eb5a84c6a074f4555cb4cf4f57e35fe812
7
- data.tar.gz: 54bc9279534fe8ce1210cfa4fb3ce962b273c23ae60654d9e96065372b16bf7211e89868d16fb5cb6a63a07e75563259fe5d9d41acb9ffc1b490528712098c64
6
+ metadata.gz: 12d357026fc0faeb4056843b460691683df68c87941436961e47fd26e7601befe3d897c741fb0cc9cabc1730c86c0e05ecddbffc67fe9117e7a94f79e1d7bf63
7
+ data.tar.gz: b9dea1b6cf8f01476551d49d5acfc781b579a20120a25751e2babc6047ad9b1b6d9731b3f47f75d41cacff890bb10c82e2b4ac15ce8123474231e45cdf027f3a
data/README.md CHANGED
@@ -76,8 +76,9 @@ pagecord post delete TOKEN # add --permanent to skip the bin
76
76
  `pagecord page` takes the same commands. Lists are paged 15 at a time; pass
77
77
  `--page N` for more. `--content-file` sends Markdown when the file ends `.md`,
78
78
  and HTML otherwise. Other flags: `--title`, `--status draft|published`,
79
- `--slug`, `--published-at`, `--tags`, `--canonical-url`, `--locale` and
80
- `--hidden`/`--no-hidden`. `--json` prints the full response.
79
+ `--slug`, `--published-at`, `--tags`, `--canonical-url`, `--link-url` (posts
80
+ only), `--locale` and `--hidden`/`--no-hidden`. `--json` prints the full
81
+ response.
81
82
 
82
83
  ## Agent skill
83
84
 
@@ -165,6 +166,7 @@ Accepted by every command, before or after the command name:
165
166
  --published-at TIME
166
167
  --tags TAGS
167
168
  --canonical-url URL
169
+ --link-url URL
168
170
  --hidden
169
171
  --locale LOCALE
170
172
  ```
@@ -182,11 +184,15 @@ tags:
182
184
  - cli
183
185
  published_at: 2026-01-02T03:04:05Z
184
186
  canonical_url: https://example.com/original
187
+ link_url: https://example.com/an-article
185
188
  hidden: false
186
189
  locale: en
187
190
  ---
188
191
  ```
189
192
 
193
+ `link_url` makes it a link post: the title links to that address. Use
194
+ `--link-url ""` to turn a link post back into a normal post.
195
+
190
196
  If `title` is omitted, the CLI uses the filename. Use `title:` or
191
197
  `title: ""` to publish without a title.
192
198
 
@@ -51,7 +51,8 @@ pagecord post update TOKEN --content-file post.html --status draft
51
51
  ```
52
52
 
53
53
  `update` changes only the flags given. Other fields: `--slug`,
54
- `--published-at`, `--tags "a, b"`, `--canonical-url`, `--locale`,
54
+ `--published-at`, `--tags "a, b"`, `--canonical-url`, `--link-url` (makes a
55
+ link post, whose title links to that address), `--locale`,
55
56
  `--hidden`/`--no-hidden`. Delete moves a post to the bin unless you pass
56
57
  `--permanent`, which can't be undone: confirm with the user first.
57
58
 
@@ -64,7 +65,7 @@ pagecord draft notes/idea.md # save as a draft
64
65
 
65
66
  The first run writes a `pagecord_token` into the file's front matter, and later
66
67
  runs update that same post. Front matter can set `title`, `slug`, `tags`,
67
- `published_at`, `canonical_url`, `hidden` and `locale`. Local images written as
68
+ `published_at`, `canonical_url`, `link_url`, `hidden` and `locale`. Local images written as
68
69
  `![alt](photo.jpg "Caption")` are uploaded with their alt text and
69
70
  optional caption.
70
71
 
@@ -307,6 +307,7 @@ module PagecordCLI
307
307
  opts.on("--published-at TIME") { |value| params[:published_at] = value }
308
308
  opts.on("--tags TAGS") { |value| params[:tags] = value }
309
309
  opts.on("--canonical-url URL") { |value| params[:canonical_url] = value }
310
+ opts.on("--link-url URL") { |value| params[:link_url] = value }
310
311
  opts.on("--[no-]hidden") { |value| params[:hidden] = value }
311
312
  opts.on("--locale LOCALE") { |value| params[:locale] = value }
312
313
  end.parse!(argv)
@@ -349,6 +350,7 @@ module PagecordCLI
349
350
  opts.on("--published-at TIME") { |value| overrides[:published_at] = value }
350
351
  opts.on("--tags TAGS") { |value| overrides[:tags] = value }
351
352
  opts.on("--canonical-url URL") { |value| overrides[:canonical_url] = value }
353
+ opts.on("--link-url URL") { |value| overrides[:link_url] = value }
352
354
  opts.on("--[no-]hidden") { |value| overrides[:hidden] = value }
353
355
  opts.on("--locale LOCALE") { |value| overrides[:locale] = value }
354
356
  end.parse!(argv)
@@ -484,6 +486,7 @@ module PagecordCLI
484
486
  --published-at TIME
485
487
  --tags TAGS
486
488
  --canonical-url URL
489
+ --link-url URL makes a post a link post: the title links here
487
490
  --locale LOCALE
488
491
  --hidden, --no-hidden
489
492
  --content-file PATH post/page create and update; Markdown if it ends .md
@@ -66,7 +66,7 @@ module PagecordCLI
66
66
  def params
67
67
  publish_params = { title: title_from_metadata }
68
68
 
69
- %w[slug published_at canonical_url locale].each do |key|
69
+ %w[slug published_at canonical_url link_url locale].each do |key|
70
70
  value = frontmatter_string(metadata[key])
71
71
  publish_params[key.to_sym] = value if value
72
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PagecordCLI
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagecord-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olly Headey