Skip to content

Commit 9267e70

Browse files
committed
chore: bump go-flashduty to v0.6.0 and regenerate CLI commands
Picks up four spec fixes from the SDK: automation timezone fallback (server default, not UTC), channel-create group.time_window units (minutes, not seconds), datasource-info's credential description, and real request schemas for status-page update/delete. The last one is a breaking change downstream: status-page update and delete previously took no request fields at all (an EmptyRequest spec bug), so `status-page update`/`delete` gain real flags — page_id plus, for update, all the page's editable fields (name, url_name, custom_domain, page_title, logo, dark_logo, logo_url, favicon, page_header, page_footer, date_view, display_uptime_mode, custom_links, contact_info, subscription, template_preference). Regenerated via `go run ./internal/cmd/cligen` (Cobra commands) and `go run ./internal/cmd/skilldoc gen` (skill reference cards).
1 parent 641417b commit 9267e70

8 files changed

Lines changed: 151 additions & 16 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/flashcatcloud/flashduty-cli
33
go 1.25.1
44

55
require (
6-
github.com/flashcatcloud/go-flashduty v0.5.13
6+
github.com/flashcatcloud/go-flashduty v0.6.0
77
github.com/mattn/go-runewidth v0.0.24
88
github.com/spf13/cobra v1.10.2
99
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
22
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
33
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
4-
github.com/flashcatcloud/go-flashduty v0.5.13 h1:4z75ojq3bTpWUD1uGulljhY2tmyA5Zk86sVNDA02vKY=
5-
github.com/flashcatcloud/go-flashduty v0.5.13/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8=
4+
github.com/flashcatcloud/go-flashduty v0.6.0 h1:N4nFJ7+ROBRJRUYkN5KPUcheKqyTwcuYhbi2svNJ0oY=
5+
github.com/flashcatcloud/go-flashduty v0.6.0/go.mod h1:aA0RtZEs0AYOwwdNKdtVeD8YMOdnmVY1zAlVD+9Ovx8=
66
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
77
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
88
github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU=

internal/cli/zz_generated_automations.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cli/zz_generated_channels.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cli/zz_generated_data_sources.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cli/zz_generated_status_pages.go

Lines changed: 124 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

skills/flashduty/reference/safari.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Create Automation rule
121121
- `--prompt` string (required) — Task prompt sent to the AI SRE agent on each run. (≥1 chars)
122122
- `--schedule-trigger-enabled` bool — Whether the schedule trigger is enabled. Defaults to true when omitted; HTTP-POST-only rules should send false.
123123
- `--team-id` int64 — Scope team ID. 0 or omitted means a personal rule; >0 means a team in the account. Immutable after creation. (min 0)
124-
- `--timezone` string — IANA timezone 'cron_expr' is evaluated in, e.g. 'Asia/Shanghai'. Must be a timezone name loadable by the server; an invalid value is rejected. Defaults to the caller's member timezone, then the account timezone, then UTC when omitted.
124+
- `--timezone` string — IANA timezone 'cron_expr' is evaluated in, e.g. 'Asia/Shanghai'. Must be a timezone name loadable by the server; an invalid value is rejected. Defaults to the caller's member timezone, then the account timezone, then the server default (Asia/Shanghai) when omitted.
125125
- response: single object (`data` unwrapped to the top level) — fields: account_id (integer); can_edit (boolean); created_at (integer); cron_expr (string); enabled (boolean); environment_id (string); environment_kind (string); http_post_token (string); http_post_trigger_enabled (boolean); http_post_trigger_id (string); http_post_trigger_url (string); name (string); oncall_incident_channel_ids (array<integer>); oncall_incident_severities (array<string>); oncall_incident_trigger_enabled (boolean); oncall_incident_trigger_id (string); owner_id (integer); prompt (string); rule_id (string); run_scope (string); schedule_next_fire_at_ms (integer); schedule_trigger_enabled (boolean); schedule_trigger_id (string); team_id (integer); timezone (string); updated_at (integer)
126126

127127
### automation-rule-delete <rule-id>

skills/flashduty/reference/status-page.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ Create status page
148148
- body-only (`--data`): custom_links (array<object>); subscription (object)
149149
- response: single object (`data` unwrapped to the top level) — fields: page_id (integer); page_name (string); page_url_name (string)
150150

151-
### delete
151+
### delete <page-id>
152152
Delete status page
153+
- `<page-id>` (positional, required) int64 — Status page ID.
153154

154155
### info <page-id>
155156
Get status page detail
@@ -230,8 +231,24 @@ Upsert status page template
230231
- body-only (`--data`): template (object) (required)
231232
- response: single object (`data` unwrapped to the top level) — fields: template_id (string)
232233

233-
### update
234+
### update <page-id>
234235
Update status page
236+
- `--contact-info` string — Get-in-touch contact, such as a mailto or website URL. Omit to keep the existing value.
237+
- `--custom-domain` string — Custom domain for a public status page. Omit to keep the existing value. (≤255 chars)
238+
- `--dark-logo` string — Dark-mode logo image of the status page. Omit to keep the existing value.
239+
- `--date-view` string — How event dates are displayed. Omit to keep the existing value. · enum: calendar | list
240+
- `--display-uptime-mode` string — How uptime is displayed. Omit to keep the existing value. · enum: chart_and_percentage | chart | none
241+
- `--favicon` string — Favicon of the status page. Omit to keep the existing value.
242+
- `--logo` string — Logo image of the status page. Omit to keep the existing value.
243+
- `--logo-url` string — URL opened when the logo is clicked. Omit to keep the existing value.
244+
- `--name` string — Display name of the status page. Omit to keep the existing value. (≤255 chars)
245+
- `--page-footer` string — Footer content shown on the status page. Omit to keep the existing value.
246+
- `--page-header` string — Header content shown on the status page. Omit to keep the existing value.
247+
- `<page-id>` (positional, required) int64 — Status page ID.
248+
- `--page-title` string — Browser title shown for the status page. Omit to keep the existing value.
249+
- `--template-preference` string — Preferred change-event template type. Omit to keep the existing value.
250+
- `--url-name` string — URL-safe slug, unique per account and page type. Omit to keep the existing value. (≤255 chars)
251+
- body-only (`--data`): custom_links (array<object>); subscription (object)
235252

236253
<!-- GENERATED:status-page END -->
237254

0 commit comments

Comments
 (0)