@koda-sl/baker-cli 0.298.0-dev.52a1f12f8 → 0.299.0-dev.932cec6ab
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/dist/cli.js +18 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -30131,6 +30131,12 @@ registerSchema({
|
|
|
30131
30131
|
type: "string",
|
|
30132
30132
|
description: "Who picks the face, for an invented avatar: 'ask' (default) blocks on the user through `request_avatar_casting`, 'auto' keeps the one this build casts and asks nobody. Use 'auto' only when there is no one to answer \u2014 a Schedule, a batch, an explicit \"do it yourself\" \u2014 because a person who is there almost always wants this choice.",
|
|
30133
30133
|
required: false
|
|
30134
|
+
},
|
|
30135
|
+
output: {
|
|
30136
|
+
type: "string",
|
|
30137
|
+
description: "Output format. Only `json`, which is what this returns anyway \u2014 accepted because `avatars list` and `avatars get` take it, so reaching for it here is the obvious guess.",
|
|
30138
|
+
required: false,
|
|
30139
|
+
default: "json"
|
|
30134
30140
|
}
|
|
30135
30141
|
}
|
|
30136
30142
|
});
|
|
@@ -30171,6 +30177,12 @@ var createCommand2 = defineCommand96({
|
|
|
30171
30177
|
type: "string",
|
|
30172
30178
|
description: "Who picks the face of an invented avatar: 'ask' (default, blocks on the user) or 'auto' (asks nobody)",
|
|
30173
30179
|
required: false
|
|
30180
|
+
},
|
|
30181
|
+
output: {
|
|
30182
|
+
type: "string",
|
|
30183
|
+
description: "Output format \u2014 `json` only, which is what this returns anyway",
|
|
30184
|
+
required: false,
|
|
30185
|
+
default: "json"
|
|
30174
30186
|
}
|
|
30175
30187
|
},
|
|
30176
30188
|
run: async ({ args }) => {
|
|
@@ -30195,6 +30207,12 @@ var createCommand2 = defineCommand96({
|
|
|
30195
30207
|
`--handle "${handle}" is not usable. Use lowercase letters, numbers and dashes, starting with a letter \u2014 "maria-founder", not "Maria Founder". Leave it off to have one derived from the name.`
|
|
30196
30208
|
);
|
|
30197
30209
|
}
|
|
30210
|
+
const output = args.output?.trim().toLowerCase();
|
|
30211
|
+
if (output && output !== "json") {
|
|
30212
|
+
failValidation2(
|
|
30213
|
+
`\`--output ${output}\` is not a format \`baker avatars create\` produces \u2014 it returns JSON and nothing else. Drop the flag, or pass \`--output json\`. \`baker avatars list\` and \`baker avatars get\` are the ones that also render \`files\` and \`md\`.`
|
|
30214
|
+
);
|
|
30215
|
+
}
|
|
30198
30216
|
const faceChoice = parseFaceChoice(args.face);
|
|
30199
30217
|
if (faceChoice === null) {
|
|
30200
30218
|
failValidation2(
|