faces-cli 1.2.0 → 1.2.1
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.
|
@@ -7,7 +7,7 @@ export default class FaceCreate extends BaseCommand {
|
|
|
7
7
|
...BaseCommand.baseFlags,
|
|
8
8
|
name: Flags.string({ description: 'Display name', required: true }),
|
|
9
9
|
username: Flags.string({ description: 'Unique username slug', required: true }),
|
|
10
|
-
formula: Flags.string({ description: 'Boolean formula over owned concrete face usernames (e.g. "a | b", "(a | b) - c"). Creates a
|
|
10
|
+
formula: Flags.string({ description: 'Boolean formula over owned concrete face usernames (e.g. "a | b", "(a | b) - c"). Creates a composite face.' }),
|
|
11
11
|
attr: Flags.string({ description: 'Attribute KEY=VALUE (repeatable)', multiple: true }),
|
|
12
12
|
tool: Flags.string({ description: 'Tool name to enable (repeatable)', multiple: true }),
|
|
13
13
|
};
|
|
@@ -16,7 +16,7 @@ export default class FaceCreate extends BaseCommand {
|
|
|
16
16
|
const { flags } = await this.parse(FaceCreate);
|
|
17
17
|
const client = this.makeClient(flags);
|
|
18
18
|
if (flags.formula && (flags.attr?.length || flags.tool?.length)) {
|
|
19
|
-
this.error('--formula cannot be combined with --attr or --tool.
|
|
19
|
+
this.error('--formula cannot be combined with --attr or --tool. Composite faces do not have compiled knowledge.');
|
|
20
20
|
}
|
|
21
21
|
const payload = { name: flags.name, username: flags.username };
|
|
22
22
|
if (flags.formula) {
|
|
@@ -30,7 +30,7 @@ export default class FaceGet extends BaseCommand {
|
|
|
30
30
|
this.log(`created: ${new Date(f.created * 1000).toISOString().slice(0, 10)}`);
|
|
31
31
|
if (f.formula) {
|
|
32
32
|
this.log(`formula: ${f.formula}`);
|
|
33
|
-
this.log(`type:
|
|
33
|
+
this.log(`type: composite`);
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
this.log(`type: concrete`);
|
|
@@ -26,7 +26,7 @@ export default class FaceList extends BaseCommand {
|
|
|
26
26
|
const idWidth = Math.max(...faces.map(f => f.id.length));
|
|
27
27
|
const nameWidth = Math.max(...faces.map(f => f.name.length));
|
|
28
28
|
for (const f of faces) {
|
|
29
|
-
const synthetic = f.formula ? ` [
|
|
29
|
+
const synthetic = f.formula ? ` [composite: ${f.formula}]` : '';
|
|
30
30
|
this.log(`${f.id.padEnd(idWidth)} ${f.name.padEnd(nameWidth)}${synthetic}`);
|
|
31
31
|
}
|
|
32
32
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1366,7 +1366,7 @@
|
|
|
1366
1366
|
"type": "option"
|
|
1367
1367
|
},
|
|
1368
1368
|
"formula": {
|
|
1369
|
-
"description": "Boolean formula over owned concrete face usernames (e.g. \"a | b\", \"(a | b) - c\"). Creates a
|
|
1369
|
+
"description": "Boolean formula over owned concrete face usernames (e.g. \"a | b\", \"(a | b) - c\"). Creates a composite face.",
|
|
1370
1370
|
"name": "formula",
|
|
1371
1371
|
"hasDynamicHelp": false,
|
|
1372
1372
|
"multiple": false,
|
|
@@ -2883,5 +2883,5 @@
|
|
|
2883
2883
|
]
|
|
2884
2884
|
}
|
|
2885
2885
|
},
|
|
2886
|
-
"version": "1.2.
|
|
2886
|
+
"version": "1.2.1"
|
|
2887
2887
|
}
|