faces-cli 1.6.12 → 1.6.13
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base.js';
|
|
2
|
-
export default class
|
|
2
|
+
export default class FaceEdit extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -3,8 +3,8 @@ import { BaseCommand } from '../../base.js';
|
|
|
3
3
|
import { FacesAPIError } from '../../client.js';
|
|
4
4
|
import { CatalogService } from '../../catalog.js';
|
|
5
5
|
import { renameFaceFields } from '../../utils.js';
|
|
6
|
-
export default class
|
|
7
|
-
static description = "
|
|
6
|
+
export default class FaceEdit extends BaseCommand {
|
|
7
|
+
static description = "Edit a face's metadata";
|
|
8
8
|
static flags = {
|
|
9
9
|
...BaseCommand.baseFlags,
|
|
10
10
|
name: Flags.string({ description: 'New display name' }),
|
|
@@ -19,7 +19,7 @@ export default class FaceUpdate extends BaseCommand {
|
|
|
19
19
|
face_id: Args.string({ description: 'Face alias', required: true }),
|
|
20
20
|
};
|
|
21
21
|
async run() {
|
|
22
|
-
const { args, flags } = await this.parse(
|
|
22
|
+
const { args, flags } = await this.parse(FaceEdit);
|
|
23
23
|
const client = this.makeClient(flags);
|
|
24
24
|
const payload = {};
|
|
25
25
|
if (flags.name)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base.js';
|
|
2
|
-
export default class
|
|
2
|
+
export default class TeamEdit extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
5
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -3,8 +3,8 @@ import fs from 'node:fs';
|
|
|
3
3
|
import { BaseCommand } from '../../base.js';
|
|
4
4
|
import { FacesAPIError } from '../../client.js';
|
|
5
5
|
import { TeamCatalogService } from '../../team-catalog.js';
|
|
6
|
-
export default class
|
|
7
|
-
static description = '
|
|
6
|
+
export default class TeamEdit extends BaseCommand {
|
|
7
|
+
static description = 'Edit a team';
|
|
8
8
|
static flags = {
|
|
9
9
|
...BaseCommand.baseFlags,
|
|
10
10
|
name: Flags.string({ description: 'New team name' }),
|
|
@@ -16,7 +16,7 @@ export default class TeamUpdate extends BaseCommand {
|
|
|
16
16
|
team_id: Args.string({ description: 'Team ID', required: true }),
|
|
17
17
|
};
|
|
18
18
|
async run() {
|
|
19
|
-
const { args, flags } = await this.parse(
|
|
19
|
+
const { args, flags } = await this.parse(TeamEdit);
|
|
20
20
|
const client = this.makeClient(flags);
|
|
21
21
|
let protocol = flags.protocol;
|
|
22
22
|
if (flags['protocol-file']) {
|