zinkee 0.1.21 → 0.1.22
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/.claude/settings.local.json +2 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/displays.ts +5 -2
- package/src/utils/examples.ts +3 -3
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee config show --foo --bar baz quux ?\" COMP_CWORD=10 node dist/index.js)",
|
|
42
42
|
"Bash(git -C /home/guillermo/dev/cli status)",
|
|
43
43
|
"Bash(git -C /home/guillermo/dev/cli branch --show-current)",
|
|
44
|
-
"Bash(git -C /home/guillermo/dev/cli diff --stat)"
|
|
44
|
+
"Bash(git -C /home/guillermo/dev/cli diff --stat)",
|
|
45
|
+
"Bash(git fetch *)"
|
|
45
46
|
]
|
|
46
47
|
}
|
|
47
48
|
}
|
package/dist/index.js
CHANGED
|
@@ -3306,12 +3306,12 @@ var specificExamples = {
|
|
|
3306
3306
|
}`
|
|
3307
3307
|
},
|
|
3308
3308
|
{
|
|
3309
|
-
description: "Change a DATE variable to use
|
|
3310
|
-
command: "zinkee --json displays variables update 0f6f062f-1478-4df2-96a1-c495d037d260 bbbbbbbb-2222-4222-a222-222222222222 --date-mode dynamic --date-dynamic-option
|
|
3309
|
+
description: "Change a DATE variable to use last12Months.",
|
|
3310
|
+
command: "zinkee --json displays variables update 0f6f062f-1478-4df2-96a1-c495d037d260 bbbbbbbb-2222-4222-a222-222222222222 --date-mode dynamic --date-dynamic-option last12Months",
|
|
3311
3311
|
raw: `{
|
|
3312
3312
|
"date": {
|
|
3313
3313
|
"mode": "dynamic",
|
|
3314
|
-
"dynamicOption": "
|
|
3314
|
+
"dynamicOption": "last12Months"
|
|
3315
3315
|
}
|
|
3316
3316
|
}`
|
|
3317
3317
|
}
|
|
@@ -8066,6 +8066,7 @@ function parseExpression(input) {
|
|
|
8066
8066
|
}
|
|
8067
8067
|
|
|
8068
8068
|
// src/commands/displays.ts
|
|
8069
|
+
var DATE_DYNAMIC_OPTIONS = "today, thisWeek, thisMonth, thisQuarter, thisSemester, thisYear, next7Days, next30Days, next6Months, next12Months, last12Months";
|
|
8069
8070
|
function getCommandIo4(stdout) {
|
|
8070
8071
|
return stdout ?? process.stdout;
|
|
8071
8072
|
}
|
|
@@ -8502,7 +8503,7 @@ function registerDisplaysCommands(program, options = {}) {
|
|
|
8502
8503
|
}
|
|
8503
8504
|
printTable([match], void 0, stdout);
|
|
8504
8505
|
});
|
|
8505
|
-
variables.command("create").description("Create variable").argument("<display>", "display uuid or slug", parseUuidOrSlugSelector3).option("--type <type>").option("--name <name>").option("--allow-multiple").option("--static").option("--default <value>").option("--default-value <value>", "repeatable default value", (v, p = []) => [...p, v], []).option("--source-schema <id>").option("--source-field <id>").option("--filter <expr>", "repeatable filter", collectFilters, []).option("--date-mode <mode>").option("--date-dynamic-option <option>").option("--date-specific <iso>").option("--date-range-start <iso>").option("--date-range-end <iso>").option("--raw <json>").option("--raw-file <path>").action(async function action(display, commandOptions) {
|
|
8506
|
+
variables.command("create").description("Create variable").argument("<display>", "display uuid or slug", parseUuidOrSlugSelector3).option("--type <type>").option("--name <name>").option("--allow-multiple").option("--static").option("--default <value>").option("--default-value <value>", "repeatable default value", (v, p = []) => [...p, v], []).option("--source-schema <id>").option("--source-field <id>").option("--filter <expr>", "repeatable filter", collectFilters, []).option("--date-mode <mode>").option("--date-dynamic-option <option>", `dynamic date period (${DATE_DYNAMIC_OPTIONS})`).option("--date-specific <iso>").option("--date-range-start <iso>").option("--date-range-end <iso>").option("--raw <json>").option("--raw-file <path>").action(async function action(display, commandOptions) {
|
|
8506
8507
|
const { api, json, readOnly } = createDisplaysApi(this, filePath);
|
|
8507
8508
|
ensureWritable3("displays variables create", readOnly, "write");
|
|
8508
8509
|
const data = await api.createVariable(display, buildVariableBody(commandOptions));
|
|
@@ -8512,7 +8513,7 @@ function registerDisplaysCommands(program, options = {}) {
|
|
|
8512
8513
|
}
|
|
8513
8514
|
writeLine4(stdout, `Created variable on display "${display.value}".`);
|
|
8514
8515
|
});
|
|
8515
|
-
variables.command("update").description("Update variable").argument("<display>", "display uuid or slug", parseUuidOrSlugSelector3).argument("<variable>", "variable id").option("--type <type>").option("--name <name>").option("--allow-multiple").option("--static").option("--default <value>").option("--default-value <value>", "repeatable default value", (v, p = []) => [...p, v], []).option("--source-schema <id>").option("--source-field <id>").option("--filter <expr>", "repeatable filter", collectFilters, []).option("--date-mode <mode>").option("--date-dynamic-option <option>").option("--date-specific <iso>").option("--date-range-start <iso>").option("--date-range-end <iso>").option("--raw <json>").option("--raw-file <path>").action(async function action(display, variableId, commandOptions) {
|
|
8516
|
+
variables.command("update").description("Update variable").argument("<display>", "display uuid or slug", parseUuidOrSlugSelector3).argument("<variable>", "variable id").option("--type <type>").option("--name <name>").option("--allow-multiple").option("--static").option("--default <value>").option("--default-value <value>", "repeatable default value", (v, p = []) => [...p, v], []).option("--source-schema <id>").option("--source-field <id>").option("--filter <expr>", "repeatable filter", collectFilters, []).option("--date-mode <mode>").option("--date-dynamic-option <option>", `dynamic date period (${DATE_DYNAMIC_OPTIONS})`).option("--date-specific <iso>").option("--date-range-start <iso>").option("--date-range-end <iso>").option("--raw <json>").option("--raw-file <path>").action(async function action(display, variableId, commandOptions) {
|
|
8516
8517
|
const { api, json, readOnly } = createDisplaysApi(this, filePath);
|
|
8517
8518
|
ensureWritable3("displays variables update", readOnly, "write");
|
|
8518
8519
|
const data = await api.updateVariable(display, variableId, buildVariableBody(commandOptions));
|