Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Streamlinecoder autostart UX #1647

Closed
Assignees
johnstcn
Labels
apiArea: HTTP API
@ammario

Description

@ammario

cc@johnstcn (thank you! 🙇🏽‍♂️)


subcommand naming

coder autostart enable implies it just turns on autostart, not that it would update it too. For example, you wouldn't enable autostart multiple times. Perhapscoder autostart set makes more sense?

restructured set syntax

Screen Shot 2022-05-21 at 1 37 34 PM

I believe that we should use defaults only when they satisfy a majority of the use cases.

In the case of autostart, maybe 1 in 20 will use UTC, and maybe 1 in 3 want their workspace to start at 9am. I believe we should remove these defaults and force users to set their workspace schedule as follows:

coder autostart set <workspace> Mon-Fri 9:00AM America/Chicago
  • If they omit timezone, we should infer it from the system
  • If they omits days of week, we should set it to Mon-Sun
  • Time of day is always required as I can't think of a reasonable default. Standard start times range from 7AM to 10AM

display schedule more clearly

Screen Shot 2022-05-21 at 1 46 53 PM

In the current schedule print, the displayed time zone is extracted from the local system when the configured time zone may be different. There's also no acknowledgement of which days autostart is enabled for.

What we display here should closely map to how autostart is configured. I suggest this format:

$ coder autostart set ab Mon-Fri 9:00AM America/Chicago ab will automatically start on Mon, Tue, Wed, Thu, and Fri at 9:00AM America/Chicago

Acceptance Criteria

  • autostart enable|disable ->autostart set|unset
  • --autostart-hour --autostart-minute --autostart-dow ->HH:MM{AM|PM} [DOW] [TIMEZONE]
    • DOW defaultsMON-SUN SUN-SAT Edit: our existing schedules assume Sunday is the first day of the week.
    • Require time-of-day
  • CLI can infer timezone from system
  • Updatedautostart show output showing DOW and in configured autostart timezone

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp