@markjaquith/agency 2.1.0 → 2.2.0
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/package.json
CHANGED
|
@@ -56,13 +56,13 @@ describe("work target choices", () => {
|
|
|
56
56
|
)
|
|
57
57
|
|
|
58
58
|
expect(choices.map((choice) => choice.label)).toEqual([
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
59
|
+
"\x1b[35m\x1b[0m delivery\x1b[2m - Ship the release\x1b[0m",
|
|
60
|
+
" \x1b[36m\x1b[0m multi",
|
|
61
|
+
" \x1b[33m\x1b[0m build",
|
|
62
|
+
" \x1b[33m\x1b[0m verify",
|
|
63
|
+
" \x1b[33m\x1b[0m unlisted",
|
|
64
|
+
" \x1b[36m\x1b[0m single",
|
|
65
|
+
"\x1b[36m\x1b[0m standalone\x1b[2m - Independent work\x1b[0m",
|
|
66
66
|
])
|
|
67
67
|
expect(choices.map((choice) => choice.target.kind)).toEqual([
|
|
68
68
|
"epic",
|
|
@@ -57,7 +57,13 @@ const label = (
|
|
|
57
57
|
id: string,
|
|
58
58
|
description?: string,
|
|
59
59
|
) =>
|
|
60
|
-
`${indent}${
|
|
60
|
+
`${indent}${
|
|
61
|
+
{
|
|
62
|
+
epic: "\x1b[35m\x1b[0m",
|
|
63
|
+
task: "\x1b[36m\x1b[0m",
|
|
64
|
+
phase: "\x1b[33m\x1b[0m",
|
|
65
|
+
}[kind]
|
|
66
|
+
} ${id}${description === undefined ? "" : `\x1b[2m - ${description}\x1b[0m`}`
|
|
61
67
|
|
|
62
68
|
const taskChoices = (
|
|
63
69
|
task: TaskRecord,
|
|
@@ -164,7 +170,13 @@ export const pickWorkTarget: PickWorkTarget = (choices) =>
|
|
|
164
170
|
.map((choice, index) => `${index}\t${choice.label}`)
|
|
165
171
|
.join("\n")
|
|
166
172
|
const process = Bun.spawn(
|
|
167
|
-
[
|
|
173
|
+
[
|
|
174
|
+
"fzf",
|
|
175
|
+
"--ansi",
|
|
176
|
+
"--delimiter=\t",
|
|
177
|
+
"--with-nth=2..",
|
|
178
|
+
"--prompt=Work on> ",
|
|
179
|
+
],
|
|
168
180
|
{ stdin: new Blob([input]), stdout: "pipe", stderr: "inherit" },
|
|
169
181
|
)
|
|
170
182
|
const [exitCode, output] = await Promise.all([
|