@pmate/cli 0.17.0 → 0.17.2
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/index.d.ts +82 -4
- package/dist/index.js +5831 -5364
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,9 @@ declare enum Command {
|
|
|
27
27
|
Account = "account",
|
|
28
28
|
Store = "store",
|
|
29
29
|
App = "app",
|
|
30
|
-
|
|
30
|
+
Service = "service",
|
|
31
|
+
Vercel = "vercel",
|
|
32
|
+
Quiz = "quiz"
|
|
31
33
|
}
|
|
32
34
|
type NoneCommandArgs = {
|
|
33
35
|
type: Command.None;
|
|
@@ -63,12 +65,15 @@ type DeployCommandArgs = {
|
|
|
63
65
|
deployApp: string;
|
|
64
66
|
deployAction: "deploy" | "logs";
|
|
65
67
|
deployCwd: string;
|
|
68
|
+
deployNamespace?: string;
|
|
69
|
+
deployBaseUrl?: string;
|
|
66
70
|
};
|
|
67
71
|
type LogCommandArgs = {
|
|
68
72
|
type: Command.Log;
|
|
69
73
|
logApp: string;
|
|
70
74
|
logCwd: string;
|
|
71
75
|
logNamespace?: string;
|
|
76
|
+
logBaseUrl?: string;
|
|
72
77
|
logPage: number;
|
|
73
78
|
logHistory: boolean;
|
|
74
79
|
logSearch?: string;
|
|
@@ -77,6 +82,8 @@ type InitCommandArgs = {
|
|
|
77
82
|
type: Command.Init;
|
|
78
83
|
initApp: string;
|
|
79
84
|
initCwd: string;
|
|
85
|
+
initNamespace?: string;
|
|
86
|
+
initBaseUrl?: string;
|
|
80
87
|
};
|
|
81
88
|
type DeleteCommandArgs = {
|
|
82
89
|
type: Command.Delete;
|
|
@@ -112,6 +119,21 @@ type SummaryCommandArgs = {
|
|
|
112
119
|
prRef: string;
|
|
113
120
|
cwd: string;
|
|
114
121
|
};
|
|
122
|
+
type QuizCommandArgs = {
|
|
123
|
+
type: Command.Quiz;
|
|
124
|
+
action: "publish";
|
|
125
|
+
filePath: string;
|
|
126
|
+
paperId: string;
|
|
127
|
+
apiBaseUrl?: string;
|
|
128
|
+
linkBaseUrl?: string;
|
|
129
|
+
activate: boolean;
|
|
130
|
+
} | {
|
|
131
|
+
type: Command.Quiz;
|
|
132
|
+
action: "activate";
|
|
133
|
+
paperId: string;
|
|
134
|
+
apiBaseUrl?: string;
|
|
135
|
+
linkBaseUrl?: string;
|
|
136
|
+
};
|
|
115
137
|
type LinearPrCommandArgs = {
|
|
116
138
|
type: Command.Linear;
|
|
117
139
|
action: "pr";
|
|
@@ -326,7 +348,7 @@ type AgentCommandArgs = {
|
|
|
326
348
|
json: boolean;
|
|
327
349
|
} | {
|
|
328
350
|
type: Command.Agent;
|
|
329
|
-
action: "get";
|
|
351
|
+
action: "get" | "view";
|
|
330
352
|
namespace: string;
|
|
331
353
|
name: string;
|
|
332
354
|
baseUrl?: string;
|
|
@@ -428,11 +450,12 @@ type StoreCommandArgs = ({
|
|
|
428
450
|
type AppCommandArgs = {
|
|
429
451
|
type: Command.App;
|
|
430
452
|
action: "list";
|
|
453
|
+
namespace?: string;
|
|
431
454
|
baseUrl?: string;
|
|
432
455
|
json: boolean;
|
|
433
456
|
} | {
|
|
434
457
|
type: Command.App;
|
|
435
|
-
action: "get";
|
|
458
|
+
action: "get" | "view";
|
|
436
459
|
id: string;
|
|
437
460
|
baseUrl?: string;
|
|
438
461
|
json: boolean;
|
|
@@ -456,6 +479,61 @@ type AppCommandArgs = {
|
|
|
456
479
|
baseUrl?: string;
|
|
457
480
|
json: boolean;
|
|
458
481
|
};
|
|
482
|
+
type ServiceCommandArgs = {
|
|
483
|
+
type: Command.Service;
|
|
484
|
+
action: "list";
|
|
485
|
+
namespace?: string;
|
|
486
|
+
repository?: string;
|
|
487
|
+
baseUrl?: string;
|
|
488
|
+
json: boolean;
|
|
489
|
+
} | {
|
|
490
|
+
type: Command.Service;
|
|
491
|
+
action: "get" | "view" | "delete";
|
|
492
|
+
namespace: string;
|
|
493
|
+
name: string;
|
|
494
|
+
baseUrl?: string;
|
|
495
|
+
json: boolean;
|
|
496
|
+
} | {
|
|
497
|
+
type: Command.Service;
|
|
498
|
+
action: "create";
|
|
499
|
+
filePath: string;
|
|
500
|
+
baseUrl?: string;
|
|
501
|
+
json: boolean;
|
|
502
|
+
} | {
|
|
503
|
+
type: Command.Service;
|
|
504
|
+
action: "update";
|
|
505
|
+
namespace: string;
|
|
506
|
+
name: string;
|
|
507
|
+
filePath: string;
|
|
508
|
+
baseUrl?: string;
|
|
509
|
+
json: boolean;
|
|
510
|
+
} | {
|
|
511
|
+
type: Command.Service;
|
|
512
|
+
action: "deploy";
|
|
513
|
+
namespace: string;
|
|
514
|
+
name: string;
|
|
515
|
+
cwd?: string;
|
|
516
|
+
baseUrl?: string;
|
|
517
|
+
json: boolean;
|
|
518
|
+
} | {
|
|
519
|
+
type: Command.Service;
|
|
520
|
+
action: "init";
|
|
521
|
+
namespace: string;
|
|
522
|
+
name: string;
|
|
523
|
+
cwd?: string;
|
|
524
|
+
baseUrl?: string;
|
|
525
|
+
json: boolean;
|
|
526
|
+
} | {
|
|
527
|
+
type: Command.Service;
|
|
528
|
+
action: "log";
|
|
529
|
+
namespace: string;
|
|
530
|
+
name: string;
|
|
531
|
+
baseUrl?: string;
|
|
532
|
+
json: boolean;
|
|
533
|
+
page: number;
|
|
534
|
+
history: boolean;
|
|
535
|
+
search?: string;
|
|
536
|
+
};
|
|
459
537
|
type VercelProjectsCommandArgs = {
|
|
460
538
|
type: Command.Vercel;
|
|
461
539
|
action: "projects";
|
|
@@ -469,7 +547,7 @@ type VercelDeploysCommandArgs = {
|
|
|
469
547
|
lastWeek: boolean;
|
|
470
548
|
};
|
|
471
549
|
type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
|
|
472
|
-
type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
|
|
550
|
+
type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
|
|
473
551
|
|
|
474
552
|
interface ParsedArgs {
|
|
475
553
|
help: boolean;
|