Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cli/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ func (r *RootCmd) tasksCommand() *serpent.Command {
Use: "task",
Aliases: []string{"tasks"},
Short: "Manage tasks",
// Coder Tasks is hidden from the product. Hiding the command keeps
// it out of `coder --help` and out of the generated CLI reference
// docs, while leaving it usable on deployments that set
// CODER_ENABLE_AI_TASKS.
Hidden: true,
Handler: func(i *serpent.Invocation) error {
return i.Command.HelpHandler(i)
},
Expand Down
1 change: 0 additions & 1 deletion cli/testdata/coder_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ SUBCOMMANDS:
stop Stop a workspace
support Commands for troubleshooting issues with a Coder
deployment.
task Manage tasks
templates Manage templates
tokens Manage personal access tokens
unfavorite Remove a workspace from your favorites
Expand Down
3 changes: 0 additions & 3 deletions cli/testdata/coder_server_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,6 @@ Clients include the Coder CLI, Coder Desktop, IDE extensions, and the web UI.
is detected. By default it instructs users to update using 'curl -L
https://coder.com/install.sh | sh'.

--hide-ai-tasks bool, $CODER_HIDE_AI_TASKS (default: false)
Hide AI tasks from the dashboard.

Comment on lines -293 to -295

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could alternatively build on top of this and make CODER_HIDE_AI_TASKS also make the endpoints 404?

--ssh-config-options string-array, $CODER_SSH_CONFIG_OPTIONS
These SSH config options will override the default SSH config options.
Provide options in "key=value" or "key value" format separated by
Expand Down
21 changes: 0 additions & 21 deletions cli/testdata/coder_task_--help.golden

This file was deleted.

51 changes: 0 additions & 51 deletions cli/testdata/coder_task_create_--help.golden

This file was deleted.

27 changes: 0 additions & 27 deletions cli/testdata/coder_task_delete_--help.golden

This file was deleted.

50 changes: 0 additions & 50 deletions cli/testdata/coder_task_list_--help.golden

This file was deleted.

20 changes: 0 additions & 20 deletions cli/testdata/coder_task_logs_--help.golden

This file was deleted.

25 changes: 0 additions & 25 deletions cli/testdata/coder_task_pause_--help.golden

This file was deleted.

28 changes: 0 additions & 28 deletions cli/testdata/coder_task_resume_--help.golden

This file was deleted.

24 changes: 0 additions & 24 deletions cli/testdata/coder_task_send_--help.golden

This file was deleted.

30 changes: 0 additions & 30 deletions cli/testdata/coder_task_status_--help.golden

This file was deleted.

2 changes: 1 addition & 1 deletion cli/testdata/coder_templates_init_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ USAGE:
Get started with a templated template.

OPTIONS:
--id aws-devcontainer|aws-linux|aws-windows|azure-linux|digitalocean-linux|docker|docker-devcontainer|docker-envbuilder|gcp-devcontainer|gcp-linux|gcp-vm-container|gcp-windows|incus|kubernetes|kubernetes-devcontainer|nomad-docker|quickstart|scratch|tasks-docker
--id aws-devcontainer|aws-linux|aws-windows|azure-linux|digitalocean-linux|docker|docker-devcontainer|docker-envbuilder|gcp-devcontainer|gcp-linux|gcp-vm-container|gcp-windows|incus|kubernetes|kubernetes-devcontainer|nomad-docker|quickstart|scratch
Specify a given example template by ID.

———
Expand Down
8 changes: 5 additions & 3 deletions cli/testdata/server-config.yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,6 @@ client:
# 'webgl', or 'dom'.
# (default: canvas, type: string)
webTerminalRenderer: canvas
# Hide AI tasks from the dashboard.
# (default: false, type: bool)
hideAITasks: false
# Support links to display in the top right drop down menu.
# (default: <unset>, type: struct[[]codersdk.LinkConfig])
supportLinks: []
Expand Down Expand Up @@ -794,6 +791,11 @@ workspace_prebuilds:
# limit; disabled when set to zero.
# (default: 3, type: int)
failure_hard_limit: 3
# Enable Coder Tasks. When unset, the Tasks routes are not served, the Tasks UI
# and its URLs are unavailable, the task RBAC permissions are stripped from
# built-in roles, and the CLI task commands are hidden.
# (default: false, type: bool)
enableAITasks: false
# Configure the background chat processing daemon.
chat:
# How many pending chats a worker should acquire per polling cycle.
Expand Down
Loading
Loading