You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/cli/commands/list/usage.mdx
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -84,9 +84,9 @@ The `value` field in each column definition supports Go templates. The available
84
84
85
85
### For `atmos list workflows`:
86
86
```yaml
87
-
{{ .workflow_file }} # The filename containing the workflow definition
88
-
{{ .workflow_name }} # The name of the workflow
89
-
{{ .workflow_description }} # The description provided for the workflow
87
+
{{ .name }} # The name of the workflow
88
+
{{ .file }} # The manifest name
89
+
{{ .description }} # The description provided for the workflow
90
90
```
91
91
92
92
### For `atmos list values`, `atmos list vars`, `atmos list settings`, and `atmos list metadata`:
@@ -114,6 +114,25 @@ Here's the general structure for defining custom list columns in `atmos.yaml`:
114
114
- Replace `<command_scope>` with the specific scope corresponding to the `atmos list` command you want to customize (e.g., `stacks` for `atmos list stacks`).
115
115
- The `columns` array is mandatory if you want to override the default columns. If `columns` is omitted, the command uses its default output columns.
116
116
117
+
### Custom Columns for Workflows
118
+
119
+
```yaml
120
+
# In atmos.yaml
121
+
workflows:
122
+
list:
123
+
columns:
124
+
- name: Workflow
125
+
value: "{{ .name }}"# Corresponds to the workflow key in the manifest
126
+
- name: Manifest Name
127
+
value: "{{ .file }}"# Corresponds to the 'name' field within the manifest file
128
+
- name: Description
129
+
value: "{{ .description }}"# Corresponds to the 'description' field for the workflow
130
+
```
131
+
132
+
:::info
133
+
Note that `{{ .file }}` in this context refers to the value of the top-level `name` attribute within the workflow manifest file itself, not the path to the file.
0 commit comments