taskchef 4.1.1 → 4.1.2
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.
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +9 -9
- package/package.json +1 -1
- package/src/cli.js +8 -8
package/README.md
CHANGED
|
@@ -253,17 +253,17 @@ taskchef project list --workspace <workspace>
|
|
|
253
253
|
taskchef project remove payments --workspace <workspace>
|
|
254
254
|
```
|
|
255
255
|
|
|
256
|
-
Human-readable project listings show one parent row per project.
|
|
257
|
-
GitHub
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
Human-readable project listings show one parent row per project. The first
|
|
257
|
+
configured GitHub repository appears on that row; additional repositories
|
|
258
|
+
appear beneath it as indented tree rows, aligned with the repository column and
|
|
259
|
+
with repeated kind and path cells left blank. A project without a configured
|
|
260
|
+
repository has only its parent row, containing `-` in the repository column:
|
|
260
261
|
|
|
261
262
|
```text
|
|
262
|
-
NAME
|
|
263
|
-
notes
|
|
264
|
-
payments
|
|
265
|
-
|
|
266
|
-
└─ repository https://github.com/example/payments-sdk
|
|
263
|
+
NAME KIND GITHUB REPOSITORY PATH
|
|
264
|
+
notes folder - /workspace/notes
|
|
265
|
+
payments git https://github.com/example/payments-api /workspace/payments
|
|
266
|
+
└─ https://github.com/example/payments-sdk
|
|
267
267
|
```
|
|
268
268
|
|
|
269
269
|
Import projects as a JSON array from a file or standard input:
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -104,20 +104,20 @@ function table(headers, rows) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
function projectRows(projects) {
|
|
107
|
-
return projects.flatMap((project) =>
|
|
108
|
-
[
|
|
107
|
+
return projects.flatMap((project) => {
|
|
108
|
+
const [primaryRepository = null, ...additionalRepositories] = project.githubRepos;
|
|
109
|
+
return [[
|
|
109
110
|
project.name,
|
|
110
111
|
project.isGitRepository ? "git" : "folder",
|
|
111
|
-
|
|
112
|
+
primaryRepository,
|
|
112
113
|
project.path,
|
|
113
|
-
],
|
|
114
|
-
|
|
115
|
-
` ${index === project.githubRepos.length - 1 ? "└─" : "├─"} repository`,
|
|
114
|
+
], ...additionalRepositories.map((repository, index) => [
|
|
115
|
+
` ${index === additionalRepositories.length - 1 ? "└─" : "├─"}`,
|
|
116
116
|
BLANK_TABLE_CELL,
|
|
117
117
|
repository,
|
|
118
118
|
BLANK_TABLE_CELL,
|
|
119
|
-
])
|
|
120
|
-
|
|
119
|
+
])];
|
|
120
|
+
});
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
function sortTasksByCreatedAt(tasks, ascending) {
|