hostctl 0.1.58 → 0.1.59
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/bin/hostctl.js +623 -539
- package/dist/bin/hostctl.js.map +1 -1
- package/dist/index.d.ts +48 -42
- package/dist/index.js +591 -507
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ type YamlHost = {
|
|
|
29
29
|
user?: string;
|
|
30
30
|
password?: SecretRef$1 | string;
|
|
31
31
|
'ssh-key'?: SecretRef$1 | string;
|
|
32
|
+
'ssh-key-passphrase'?: SecretRef$1 | string;
|
|
32
33
|
tags?: string[];
|
|
33
34
|
};
|
|
34
35
|
type YamlHostsMapping = {
|
|
@@ -125,6 +126,7 @@ declare class Host {
|
|
|
125
126
|
user?: string;
|
|
126
127
|
password?: SecretRef$1 | string;
|
|
127
128
|
sshKey?: SecretRef$1 | string;
|
|
129
|
+
sshKeyPassphrase?: SecretRef$1 | string;
|
|
128
130
|
tags: string[];
|
|
129
131
|
tagSet: Set<string>;
|
|
130
132
|
constructor(config: {
|
|
@@ -136,16 +138,19 @@ declare class Host {
|
|
|
136
138
|
user?: string;
|
|
137
139
|
password?: SecretRef$1 | string;
|
|
138
140
|
sshKey?: SecretRef$1 | string;
|
|
141
|
+
sshKeyPassphrase?: SecretRef$1 | string;
|
|
139
142
|
tags?: string[];
|
|
140
143
|
});
|
|
141
144
|
decryptedPassword(): Promise<string | undefined>;
|
|
142
145
|
decryptedSshKey(): Promise<string | undefined>;
|
|
146
|
+
decryptedSshKeyPassphrase(): Promise<string | undefined>;
|
|
143
147
|
toYAML(): {
|
|
144
148
|
host: string;
|
|
145
149
|
user: string | undefined;
|
|
146
150
|
port: number | undefined;
|
|
147
151
|
password: string | SecretRef$1 | undefined;
|
|
148
152
|
'ssh-key': string | SecretRef$1 | undefined;
|
|
153
|
+
'ssh-key-passphrase': string | SecretRef$1 | undefined;
|
|
149
154
|
tags: string[];
|
|
150
155
|
};
|
|
151
156
|
get shortName(): string;
|
|
@@ -191,6 +196,7 @@ type HostInput = {
|
|
|
191
196
|
port?: number;
|
|
192
197
|
password?: string | SecretRef;
|
|
193
198
|
sshKey?: string | SecretRef;
|
|
199
|
+
sshKeyPassphrase?: string | SecretRef;
|
|
194
200
|
tags?: string[];
|
|
195
201
|
};
|
|
196
202
|
type SecretRef = {
|
|
@@ -927,7 +933,7 @@ declare class Cli {
|
|
|
927
933
|
}, cmd: cmdr.Command): Promise<void>;
|
|
928
934
|
}
|
|
929
935
|
|
|
930
|
-
declare const _default$
|
|
936
|
+
declare const _default$3P: TaskFn<{
|
|
931
937
|
path: string;
|
|
932
938
|
sudo?: boolean | undefined;
|
|
933
939
|
}, {
|
|
@@ -939,7 +945,7 @@ declare const _default$3Q: TaskFn<{
|
|
|
939
945
|
error?: string | undefined;
|
|
940
946
|
}>;
|
|
941
947
|
|
|
942
|
-
declare const _default$
|
|
948
|
+
declare const _default$3O: TaskFn<{
|
|
943
949
|
from: string;
|
|
944
950
|
to: string;
|
|
945
951
|
mode?: string | undefined;
|
|
@@ -953,7 +959,7 @@ declare const _default$3P: TaskFn<{
|
|
|
953
959
|
error?: string | undefined;
|
|
954
960
|
}>;
|
|
955
961
|
|
|
956
|
-
declare const _default$
|
|
962
|
+
declare const _default$3N: TaskFn<{
|
|
957
963
|
path: string;
|
|
958
964
|
mode?: string | undefined;
|
|
959
965
|
owner?: string | undefined;
|
|
@@ -965,7 +971,7 @@ declare const _default$3O: TaskFn<{
|
|
|
965
971
|
error?: string | undefined;
|
|
966
972
|
}>;
|
|
967
973
|
|
|
968
|
-
declare const _default$
|
|
974
|
+
declare const _default$3M: TaskFn<{
|
|
969
975
|
path: string;
|
|
970
976
|
sudo?: boolean | undefined;
|
|
971
977
|
all?: boolean | undefined;
|
|
@@ -974,7 +980,7 @@ declare const _default$3N: TaskFn<{
|
|
|
974
980
|
entries: string[];
|
|
975
981
|
}>;
|
|
976
982
|
|
|
977
|
-
declare const _default$
|
|
983
|
+
declare const _default$3L: TaskFn<{
|
|
978
984
|
path: string;
|
|
979
985
|
recursive?: boolean | undefined;
|
|
980
986
|
force?: boolean | undefined;
|
|
@@ -989,7 +995,7 @@ declare const _default$3M: TaskFn<{
|
|
|
989
995
|
}>;
|
|
990
996
|
|
|
991
997
|
declare namespace dir {
|
|
992
|
-
export { _default$
|
|
998
|
+
export { _default$3O as copy, _default$3N as create, _default$3L as delete, _default$3P as exists, _default$3M as list };
|
|
993
999
|
}
|
|
994
1000
|
|
|
995
1001
|
declare const ChownInputSchema: z.ZodObject<{
|
|
@@ -1007,7 +1013,7 @@ declare const ChownOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1007
1013
|
error: z.ZodOptional<z.ZodString>;
|
|
1008
1014
|
}, z.z.core.$strip>]>;
|
|
1009
1015
|
type ChownResult = z.infer<typeof ChownOutputSchema>;
|
|
1010
|
-
declare const _default$
|
|
1016
|
+
declare const _default$3K: TaskFn<{
|
|
1011
1017
|
path: string;
|
|
1012
1018
|
owner: string;
|
|
1013
1019
|
group?: string | undefined;
|
|
@@ -1034,7 +1040,7 @@ declare const ChgrpOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1034
1040
|
error: z.ZodOptional<z.ZodString>;
|
|
1035
1041
|
}, z.z.core.$strip>]>;
|
|
1036
1042
|
type ChgrpResult = z.infer<typeof ChgrpOutputSchema>;
|
|
1037
|
-
declare const _default$
|
|
1043
|
+
declare const _default$3J: TaskFn<{
|
|
1038
1044
|
path: string;
|
|
1039
1045
|
group: string;
|
|
1040
1046
|
recursive?: boolean | undefined;
|
|
@@ -1060,7 +1066,7 @@ declare const ChmodOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1060
1066
|
error: z.ZodOptional<z.ZodString>;
|
|
1061
1067
|
}, z.z.core.$strip>]>;
|
|
1062
1068
|
type ChmodResult = z.infer<typeof ChmodOutputSchema>;
|
|
1063
|
-
declare const _default$
|
|
1069
|
+
declare const _default$3I: TaskFn<{
|
|
1064
1070
|
path: string;
|
|
1065
1071
|
mode: string | number;
|
|
1066
1072
|
recursive?: boolean | undefined;
|
|
@@ -1089,7 +1095,7 @@ declare const FileCopyOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1089
1095
|
error: z.ZodOptional<z.ZodString>;
|
|
1090
1096
|
}, z.z.core.$strip>]>;
|
|
1091
1097
|
type FileCopyResult = z.infer<typeof FileCopyOutputSchema>;
|
|
1092
|
-
declare const _default$
|
|
1098
|
+
declare const _default$3H: TaskFn<{
|
|
1093
1099
|
from: string;
|
|
1094
1100
|
to: string;
|
|
1095
1101
|
mode?: string | undefined;
|
|
@@ -1118,7 +1124,7 @@ declare const FileExistsOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1118
1124
|
error: z.ZodOptional<z.ZodString>;
|
|
1119
1125
|
}, z.z.core.$strip>]>;
|
|
1120
1126
|
type FileExistsResult = z.infer<typeof FileExistsOutputSchema>;
|
|
1121
|
-
declare const _default$
|
|
1127
|
+
declare const _default$3G: TaskFn<{
|
|
1122
1128
|
path: string;
|
|
1123
1129
|
sudo?: boolean | undefined;
|
|
1124
1130
|
}, {
|
|
@@ -1144,7 +1150,7 @@ declare const FileTouchOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1144
1150
|
error: z.ZodOptional<z.ZodString>;
|
|
1145
1151
|
}, z.z.core.$strip>]>;
|
|
1146
1152
|
type FileTouchResult = z.infer<typeof FileTouchOutputSchema>;
|
|
1147
|
-
declare const _default$
|
|
1153
|
+
declare const _default$3F: TaskFn<{
|
|
1148
1154
|
file: string;
|
|
1149
1155
|
mode?: string | undefined;
|
|
1150
1156
|
owner?: string | undefined;
|
|
@@ -1170,7 +1176,7 @@ declare const FileDeleteOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1170
1176
|
error: z.ZodOptional<z.ZodString>;
|
|
1171
1177
|
}, z.z.core.$strip>]>;
|
|
1172
1178
|
type FileDeleteResult = z.infer<typeof FileDeleteOutputSchema>;
|
|
1173
|
-
declare const _default$
|
|
1179
|
+
declare const _default$3E: TaskFn<{
|
|
1174
1180
|
path: string;
|
|
1175
1181
|
recursive?: boolean | undefined;
|
|
1176
1182
|
force?: boolean | undefined;
|
|
@@ -1198,7 +1204,7 @@ declare const FileLinkOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1198
1204
|
error: z.ZodOptional<z.ZodString>;
|
|
1199
1205
|
}, z.z.core.$strip>]>;
|
|
1200
1206
|
type FileLinkResult = z.infer<typeof FileLinkOutputSchema>;
|
|
1201
|
-
declare const _default$
|
|
1207
|
+
declare const _default$3D: TaskFn<{
|
|
1202
1208
|
target: string;
|
|
1203
1209
|
link: string;
|
|
1204
1210
|
force?: boolean | undefined;
|
|
@@ -1239,7 +1245,7 @@ declare const FileEditOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1239
1245
|
error: z.ZodOptional<z.ZodString>;
|
|
1240
1246
|
}, z.z.core.$strip>]>;
|
|
1241
1247
|
type FileEditResult = z.infer<typeof FileEditOutputSchema>;
|
|
1242
|
-
declare const _default$
|
|
1248
|
+
declare const _default$3C: TaskFn<{
|
|
1243
1249
|
file: string;
|
|
1244
1250
|
state?: "present" | "absent" | undefined;
|
|
1245
1251
|
backup?: boolean | undefined;
|
|
@@ -1290,7 +1296,7 @@ declare const FileGrepOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1290
1296
|
error: z.ZodOptional<z.ZodString>;
|
|
1291
1297
|
}, z.z.core.$strip>]>;
|
|
1292
1298
|
type FileGrepResult = z.infer<typeof FileGrepOutputSchema>;
|
|
1293
|
-
declare const _default$
|
|
1299
|
+
declare const _default$3B: TaskFn<{
|
|
1294
1300
|
file: string;
|
|
1295
1301
|
pattern: string;
|
|
1296
1302
|
ignore_case?: boolean | undefined;
|
|
@@ -1338,7 +1344,7 @@ type file_FileLinkResult = FileLinkResult;
|
|
|
1338
1344
|
type file_FileTouchParams = FileTouchParams;
|
|
1339
1345
|
type file_FileTouchResult = FileTouchResult;
|
|
1340
1346
|
declare namespace file {
|
|
1341
|
-
export { type file_ChgrpParams as ChgrpParams, type file_ChgrpResult as ChgrpResult, type file_ChmodParams as ChmodParams, type file_ChmodResult as ChmodResult, type file_ChownParams as ChownParams, type file_ChownResult as ChownResult, type file_FileCopyParams as FileCopyParams, type file_FileCopyResult as FileCopyResult, type file_FileDeleteParams as FileDeleteParams, type file_FileDeleteResult as FileDeleteResult, type file_FileEditParams as FileEditParams, type file_FileEditResult as FileEditResult, type file_FileExistsParams as FileExistsParams, type file_FileExistsResult as FileExistsResult, type file_FileGrepParams as FileGrepParams, type file_FileGrepResult as FileGrepResult, type file_FileLinkParams as FileLinkParams, type file_FileLinkResult as FileLinkResult, type file_FileTouchParams as FileTouchParams, type file_FileTouchResult as FileTouchResult, _default$
|
|
1347
|
+
export { type file_ChgrpParams as ChgrpParams, type file_ChgrpResult as ChgrpResult, type file_ChmodParams as ChmodParams, type file_ChmodResult as ChmodResult, type file_ChownParams as ChownParams, type file_ChownResult as ChownResult, type file_FileCopyParams as FileCopyParams, type file_FileCopyResult as FileCopyResult, type file_FileDeleteParams as FileDeleteParams, type file_FileDeleteResult as FileDeleteResult, type file_FileEditParams as FileEditParams, type file_FileEditResult as FileEditResult, type file_FileExistsParams as FileExistsParams, type file_FileExistsResult as FileExistsResult, type file_FileGrepParams as FileGrepParams, type file_FileGrepResult as FileGrepResult, type file_FileLinkParams as FileLinkParams, type file_FileLinkResult as FileLinkResult, type file_FileTouchParams as FileTouchParams, type file_FileTouchResult as FileTouchResult, _default$3J as chgrp, _default$3I as chmod, _default$3K as chown, _default$3H as copy, _default$3E as delete, _default$3C as edit, _default$3G as exists, _default$3B as grep, _default$3D as link, _default$3F as touch };
|
|
1342
1348
|
}
|
|
1343
1349
|
|
|
1344
1350
|
declare const GitCloneInputSchema: z.ZodObject<{
|
|
@@ -1353,7 +1359,7 @@ declare const GitCloneOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1353
1359
|
error: z.ZodOptional<z.ZodString>;
|
|
1354
1360
|
}, z.z.core.$strip>]>;
|
|
1355
1361
|
type GitCloneResult = z.infer<typeof GitCloneOutputSchema>;
|
|
1356
|
-
declare const _default$
|
|
1362
|
+
declare const _default$3A: TaskFn<{
|
|
1357
1363
|
repo: string;
|
|
1358
1364
|
dir: string;
|
|
1359
1365
|
}, {
|
|
@@ -1377,7 +1383,7 @@ declare const GitPullOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1377
1383
|
error: z.ZodOptional<z.ZodString>;
|
|
1378
1384
|
}, z.z.core.$strip>]>;
|
|
1379
1385
|
type GitPullResult = z.infer<typeof GitPullOutputSchema>;
|
|
1380
|
-
declare const _default$
|
|
1386
|
+
declare const _default$3z: TaskFn<{
|
|
1381
1387
|
directory: string;
|
|
1382
1388
|
rebase?: boolean | undefined;
|
|
1383
1389
|
remote?: string | undefined;
|
|
@@ -1402,7 +1408,7 @@ declare const GitCheckoutOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1402
1408
|
error: z.ZodOptional<z.ZodString>;
|
|
1403
1409
|
}, z.z.core.$strip>]>;
|
|
1404
1410
|
type GitCheckoutResult = z.infer<typeof GitCheckoutOutputSchema>;
|
|
1405
|
-
declare const _default$
|
|
1411
|
+
declare const _default$3y: TaskFn<{
|
|
1406
1412
|
directory: string;
|
|
1407
1413
|
target: string;
|
|
1408
1414
|
new_branch?: boolean | undefined;
|
|
@@ -1420,7 +1426,7 @@ type git_GitCloneResult = GitCloneResult;
|
|
|
1420
1426
|
type git_GitPullParams = GitPullParams;
|
|
1421
1427
|
type git_GitPullResult = GitPullResult;
|
|
1422
1428
|
declare namespace git {
|
|
1423
|
-
export { type git_GitCheckoutParams as GitCheckoutParams, type git_GitCheckoutResult as GitCheckoutResult, type git_GitCloneParams as GitCloneParams, type git_GitCloneResult as GitCloneResult, type git_GitPullParams as GitPullParams, type git_GitPullResult as GitPullResult, _default$
|
|
1429
|
+
export { type git_GitCheckoutParams as GitCheckoutParams, type git_GitCheckoutResult as GitCheckoutResult, type git_GitCloneParams as GitCloneParams, type git_GitCloneResult as GitCloneResult, type git_GitPullParams as GitPullParams, type git_GitPullResult as GitPullResult, _default$3y as checkout, _default$3A as clone, _default$3z as pull };
|
|
1424
1430
|
}
|
|
1425
1431
|
|
|
1426
1432
|
declare const GroupCreateInputSchema: z.ZodObject<{
|
|
@@ -1435,7 +1441,7 @@ declare const GroupCreateOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1435
1441
|
error: z.ZodOptional<z.ZodString>;
|
|
1436
1442
|
}, z.z.core.$strip>]>;
|
|
1437
1443
|
type GroupCreateResult = z.infer<typeof GroupCreateOutputSchema>;
|
|
1438
|
-
declare const _default$
|
|
1444
|
+
declare const _default$3x: TaskFn<{
|
|
1439
1445
|
group: string;
|
|
1440
1446
|
sudo?: boolean | undefined;
|
|
1441
1447
|
}, {
|
|
@@ -1458,7 +1464,7 @@ declare const GroupDeleteOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1458
1464
|
error: z.ZodOptional<z.ZodString>;
|
|
1459
1465
|
}, z.z.core.$strip>]>;
|
|
1460
1466
|
type GroupDeleteResult = z.infer<typeof GroupDeleteOutputSchema>;
|
|
1461
|
-
declare const _default$
|
|
1467
|
+
declare const _default$3w: TaskFn<{
|
|
1462
1468
|
group: string;
|
|
1463
1469
|
sudo?: boolean | undefined;
|
|
1464
1470
|
}, {
|
|
@@ -1477,7 +1483,7 @@ declare const GroupExistsOutputSchema: z.ZodObject<{
|
|
|
1477
1483
|
exists: z.ZodBoolean;
|
|
1478
1484
|
}, z.z.core.$strip>;
|
|
1479
1485
|
type GroupExistsResult = z.infer<typeof GroupExistsOutputSchema>;
|
|
1480
|
-
declare const _default$
|
|
1486
|
+
declare const _default$3v: TaskFn<{
|
|
1481
1487
|
group: string;
|
|
1482
1488
|
}, {
|
|
1483
1489
|
exists: boolean;
|
|
@@ -1498,7 +1504,7 @@ declare const GroupListOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1498
1504
|
groups: z.ZodArray<z.ZodType<GroupInfo, unknown, z.z.core.$ZodTypeInternals<GroupInfo, unknown>>>;
|
|
1499
1505
|
}, z.z.core.$strip>]>;
|
|
1500
1506
|
type GroupListResult = z.infer<typeof GroupListOutputSchema>;
|
|
1501
|
-
declare const _default$
|
|
1507
|
+
declare const _default$3u: TaskFn<Record<string, never>, {
|
|
1502
1508
|
success: true;
|
|
1503
1509
|
groups: GroupInfo[];
|
|
1504
1510
|
} | {
|
|
@@ -1524,7 +1530,7 @@ declare const GroupModifyOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1524
1530
|
error: z.ZodOptional<z.ZodString>;
|
|
1525
1531
|
}, z.z.core.$strip>]>;
|
|
1526
1532
|
type GroupModifyResult = z.infer<typeof GroupModifyOutputSchema>;
|
|
1527
|
-
declare const _default$
|
|
1533
|
+
declare const _default$3t: TaskFn<{
|
|
1528
1534
|
group: string;
|
|
1529
1535
|
new_name?: string | undefined;
|
|
1530
1536
|
gid?: number | undefined;
|
|
@@ -1551,7 +1557,7 @@ type group_GroupListResult = GroupListResult;
|
|
|
1551
1557
|
type group_GroupModifyParams = GroupModifyParams;
|
|
1552
1558
|
type group_GroupModifyResult = GroupModifyResult;
|
|
1553
1559
|
declare namespace group {
|
|
1554
|
-
export { type group_GroupCreateParams as GroupCreateParams, type group_GroupCreateResult as GroupCreateResult, type group_GroupDeleteParams as GroupDeleteParams, type group_GroupDeleteResult as GroupDeleteResult, type group_GroupExistsParams as GroupExistsParams, type group_GroupExistsResult as GroupExistsResult, type group_GroupInfo as GroupInfo, type group_GroupListParams as GroupListParams, type group_GroupListResult as GroupListResult, type group_GroupModifyParams as GroupModifyParams, type group_GroupModifyResult as GroupModifyResult, _default$
|
|
1560
|
+
export { type group_GroupCreateParams as GroupCreateParams, type group_GroupCreateResult as GroupCreateResult, type group_GroupDeleteParams as GroupDeleteParams, type group_GroupDeleteResult as GroupDeleteResult, type group_GroupExistsParams as GroupExistsParams, type group_GroupExistsResult as GroupExistsResult, type group_GroupInfo as GroupInfo, type group_GroupListParams as GroupListParams, type group_GroupListResult as GroupListResult, type group_GroupModifyParams as GroupModifyParams, type group_GroupModifyResult as GroupModifyResult, _default$3x as create, _default$3w as delete, _default$3v as exists, _default$3u as list, _default$3t as modify };
|
|
1555
1561
|
}
|
|
1556
1562
|
|
|
1557
1563
|
interface OSInfo {
|
|
@@ -1592,7 +1598,7 @@ declare const HostInfoOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1592
1598
|
error: z.ZodOptional<z.ZodString>;
|
|
1593
1599
|
}, z.z.core.$strip>]>;
|
|
1594
1600
|
type HostInfoResult = z.infer<typeof HostInfoOutputSchema>;
|
|
1595
|
-
declare const _default$
|
|
1601
|
+
declare const _default$3s: TaskFn<Record<string, never>, {
|
|
1596
1602
|
success: true;
|
|
1597
1603
|
host: HostInfo;
|
|
1598
1604
|
} | {
|
|
@@ -1610,7 +1616,7 @@ declare const HostSummaryOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1610
1616
|
error: z.ZodOptional<z.ZodString>;
|
|
1611
1617
|
}, z.z.core.$strip>]>;
|
|
1612
1618
|
type HostSummaryResult = z.infer<typeof HostSummaryOutputSchema>;
|
|
1613
|
-
declare const _default$
|
|
1619
|
+
declare const _default$3r: TaskFn<Record<string, never>, {
|
|
1614
1620
|
success: true;
|
|
1615
1621
|
host: HostSummary;
|
|
1616
1622
|
} | {
|
|
@@ -1647,7 +1653,7 @@ type OsDetailsResult = z.infer<typeof OsDetailsOutputSchema>;
|
|
|
1647
1653
|
* Determines the operating system family, specific OS, variant, and version.
|
|
1648
1654
|
* @returns {OsDetailsResult}
|
|
1649
1655
|
*/
|
|
1650
|
-
declare const _default$
|
|
1656
|
+
declare const _default$3q: TaskFn<Record<string, never>, {
|
|
1651
1657
|
success: true;
|
|
1652
1658
|
family: "darwin" | "linux" | "unknown" | "bsd" | "solaris" | "windows";
|
|
1653
1659
|
os: string;
|
|
@@ -1677,7 +1683,7 @@ declare const HostnameOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1677
1683
|
}, z.z.core.$strip>]>;
|
|
1678
1684
|
type HostnameParams = z.infer<typeof HostnameInputSchema>;
|
|
1679
1685
|
type HostnameResult = z.infer<typeof HostnameOutputSchema>;
|
|
1680
|
-
declare const _default$
|
|
1686
|
+
declare const _default$3p: TaskFn<{
|
|
1681
1687
|
new_name?: string | undefined;
|
|
1682
1688
|
}, {
|
|
1683
1689
|
success: true;
|
|
@@ -1718,7 +1724,7 @@ declare const BootstrapServiceAccountOutputSchema: z.ZodObject<{
|
|
|
1718
1724
|
trace: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1719
1725
|
}, z.z.core.$strip>;
|
|
1720
1726
|
type BootstrapServiceAccountResult = z.infer<typeof BootstrapServiceAccountOutputSchema>;
|
|
1721
|
-
declare const _default$
|
|
1727
|
+
declare const _default$3o: TaskFn<{
|
|
1722
1728
|
username: string;
|
|
1723
1729
|
password: string;
|
|
1724
1730
|
public_key: string;
|
|
@@ -1757,7 +1763,7 @@ type host_LSCPUChild = LSCPUChild;
|
|
|
1757
1763
|
type host_OSInfo = OSInfo;
|
|
1758
1764
|
type host_OsDetailsResult = OsDetailsResult;
|
|
1759
1765
|
declare namespace host {
|
|
1760
|
-
export { type host_BootstrapServiceAccountParams as BootstrapServiceAccountParams, type host_BootstrapServiceAccountResult as BootstrapServiceAccountResult, type host_HostInfo as HostInfo, type host_HostInfoResult as HostInfoResult, type host_HostSummary as HostSummary, type host_HostSummaryResult as HostSummaryResult, type host_HostnameParams as HostnameParams, type host_HostnameResult as HostnameResult, type host_LSBRelease as LSBRelease, type host_LSCPUChild as LSCPUChild, type host_OSInfo as OSInfo, type host_OsDetailsResult as OsDetailsResult, _default$
|
|
1766
|
+
export { type host_BootstrapServiceAccountParams as BootstrapServiceAccountParams, type host_BootstrapServiceAccountResult as BootstrapServiceAccountResult, type host_HostInfo as HostInfo, type host_HostInfoResult as HostInfoResult, type host_HostSummary as HostSummary, type host_HostSummaryResult as HostSummaryResult, type host_HostnameParams as HostnameParams, type host_HostnameResult as HostnameResult, type host_LSBRelease as LSBRelease, type host_LSCPUChild as LSCPUChild, type host_OSInfo as OSInfo, type host_OsDetailsResult as OsDetailsResult, _default$3o as bootstrapServiceAccount, _default$3p as hostname, _default$3s as info, _default$3q as os, _default$3r as summary };
|
|
1761
1767
|
}
|
|
1762
1768
|
|
|
1763
1769
|
interface AbstractPkgParams {
|
|
@@ -1806,7 +1812,7 @@ interface AbstractPkgInstallParams extends AbstractPkgParams {
|
|
|
1806
1812
|
}
|
|
1807
1813
|
interface AbstractPkgInstallResult extends AbstractPkgResult {
|
|
1808
1814
|
}
|
|
1809
|
-
declare const _default$
|
|
1815
|
+
declare const _default$3n: TaskFn<AbstractPkgInstallParams, AbstractPkgInstallResult>;
|
|
1810
1816
|
|
|
1811
1817
|
declare const AbstractPkgUninstallParamsSchema: z.ZodObject<{
|
|
1812
1818
|
sudo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1828,7 +1834,7 @@ declare const AbstractPkgUninstallResultSchema: z.ZodObject<{
|
|
|
1828
1834
|
failed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1829
1835
|
}, z.z.core.$strip>;
|
|
1830
1836
|
type AbstractPkgUninstallResult = z.infer<typeof AbstractPkgUninstallResultSchema>;
|
|
1831
|
-
declare const _default$
|
|
1837
|
+
declare const _default$3m: TaskFn<{
|
|
1832
1838
|
package: string | string[];
|
|
1833
1839
|
sudo?: boolean | undefined;
|
|
1834
1840
|
packageManager?: string | undefined;
|
|
@@ -1848,6 +1854,7 @@ declare const _default$3n: TaskFn<{
|
|
|
1848
1854
|
|
|
1849
1855
|
declare const AbstractPkgUpdateParamsSchema: z.ZodObject<{
|
|
1850
1856
|
sudo: z.ZodOptional<z.ZodBoolean>;
|
|
1857
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1851
1858
|
packageManager: z.ZodOptional<z.ZodString>;
|
|
1852
1859
|
extraArgs: z.ZodOptional<z.ZodString>;
|
|
1853
1860
|
}, z.z.core.$strip>;
|
|
@@ -1864,8 +1871,9 @@ declare const AbstractPkgUpdateResultSchema: z.ZodObject<{
|
|
|
1864
1871
|
failed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1865
1872
|
}, z.z.core.$strip>;
|
|
1866
1873
|
type AbstractPkgUpdateResult = z.infer<typeof AbstractPkgUpdateResultSchema>;
|
|
1867
|
-
declare const _default$
|
|
1874
|
+
declare const _default$3l: TaskFn<{
|
|
1868
1875
|
sudo?: boolean | undefined;
|
|
1876
|
+
input?: Record<string, string> | undefined;
|
|
1869
1877
|
packageManager?: string | undefined;
|
|
1870
1878
|
extraArgs?: string | undefined;
|
|
1871
1879
|
}, {
|
|
@@ -1894,7 +1902,7 @@ declare const PkgInfoOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1894
1902
|
error: z.ZodOptional<z.ZodString>;
|
|
1895
1903
|
}, z.z.core.$strip>]>;
|
|
1896
1904
|
type PkgInfoResult = z.infer<typeof PkgInfoOutputSchema>;
|
|
1897
|
-
declare const _default$
|
|
1905
|
+
declare const _default$3k: TaskFn<{
|
|
1898
1906
|
package: string;
|
|
1899
1907
|
}, {
|
|
1900
1908
|
installed: boolean;
|
|
@@ -1946,13 +1954,11 @@ interface PkgIsInstalledResult {
|
|
|
1946
1954
|
error?: string;
|
|
1947
1955
|
}
|
|
1948
1956
|
|
|
1949
|
-
declare const _default$
|
|
1957
|
+
declare const _default$3j: TaskFn<PkgIsInstalledParams, PkgIsInstalledResult>;
|
|
1950
1958
|
|
|
1951
1959
|
declare const install: TaskFn<PkgInstallParams, PkgInstallResult>;
|
|
1952
1960
|
|
|
1953
|
-
declare const _default$
|
|
1954
|
-
|
|
1955
|
-
declare const _default$3i: TaskFn<PkgUpdateParams, PkgUpdateResult>;
|
|
1961
|
+
declare const _default$3i: TaskFn<PkgRemoveParams, PkgRemoveResult>;
|
|
1956
1962
|
|
|
1957
1963
|
declare const AbstractPkgUpgradeParamsSchema: z.ZodObject<{
|
|
1958
1964
|
sudo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2945,7 +2951,7 @@ type pkg_PkgRemoveResult = PkgRemoveResult;
|
|
|
2945
2951
|
type pkg_PkgUpdateParams = PkgUpdateParams;
|
|
2946
2952
|
type pkg_PkgUpdateResult = PkgUpdateResult;
|
|
2947
2953
|
declare namespace pkg {
|
|
2948
|
-
export { type pkg_AbstractPkgCleanParams as AbstractPkgCleanParams, type pkg_AbstractPkgCleanResult as AbstractPkgCleanResult, type pkg_AbstractPkgInstallParams as AbstractPkgInstallParams, type pkg_AbstractPkgInstallResult as AbstractPkgInstallResult, type pkg_AbstractPkgListParams as AbstractPkgListParams, type pkg_AbstractPkgListResult as AbstractPkgListResult, type pkg_AbstractPkgParams as AbstractPkgParams, type pkg_AbstractPkgResult as AbstractPkgResult, type pkg_AbstractPkgSearchParams as AbstractPkgSearchParams, type pkg_AbstractPkgSearchResult as AbstractPkgSearchResult, type pkg_AbstractPkgUninstallParams as AbstractPkgUninstallParams, type pkg_AbstractPkgUninstallResult as AbstractPkgUninstallResult, type pkg_AbstractPkgUpdateParams as AbstractPkgUpdateParams, type pkg_AbstractPkgUpdateResult as AbstractPkgUpdateResult, type pkg_AbstractPkgUpgradeParams as AbstractPkgUpgradeParams, type pkg_AbstractPkgUpgradeResult as AbstractPkgUpgradeResult, type pkg_PkgInfoParams as PkgInfoParams, type pkg_PkgInfoResult as PkgInfoResult, type pkg_PkgInstallParams as PkgInstallParams, type pkg_PkgInstallResult as PkgInstallResult, type pkg_PkgIsInstalledParams as PkgIsInstalledParams, type pkg_PkgIsInstalledResult as PkgIsInstalledResult, type pkg_PkgRemoveParams as PkgRemoveParams, type pkg_PkgRemoveResult as PkgRemoveResult, type pkg_PkgUpdateParams as PkgUpdateParams, type pkg_PkgUpdateResult as PkgUpdateResult, index$3 as apt, _default$3e as clean, index$2 as dnf, _default$
|
|
2954
|
+
export { type pkg_AbstractPkgCleanParams as AbstractPkgCleanParams, type pkg_AbstractPkgCleanResult as AbstractPkgCleanResult, type pkg_AbstractPkgInstallParams as AbstractPkgInstallParams, type pkg_AbstractPkgInstallResult as AbstractPkgInstallResult, type pkg_AbstractPkgListParams as AbstractPkgListParams, type pkg_AbstractPkgListResult as AbstractPkgListResult, type pkg_AbstractPkgParams as AbstractPkgParams, type pkg_AbstractPkgResult as AbstractPkgResult, type pkg_AbstractPkgSearchParams as AbstractPkgSearchParams, type pkg_AbstractPkgSearchResult as AbstractPkgSearchResult, type pkg_AbstractPkgUninstallParams as AbstractPkgUninstallParams, type pkg_AbstractPkgUninstallResult as AbstractPkgUninstallResult, type pkg_AbstractPkgUpdateParams as AbstractPkgUpdateParams, type pkg_AbstractPkgUpdateResult as AbstractPkgUpdateResult, type pkg_AbstractPkgUpgradeParams as AbstractPkgUpgradeParams, type pkg_AbstractPkgUpgradeResult as AbstractPkgUpgradeResult, type pkg_PkgInfoParams as PkgInfoParams, type pkg_PkgInfoResult as PkgInfoResult, type pkg_PkgInstallParams as PkgInstallParams, type pkg_PkgInstallResult as PkgInstallResult, type pkg_PkgIsInstalledParams as PkgIsInstalledParams, type pkg_PkgIsInstalledResult as PkgIsInstalledResult, type pkg_PkgRemoveParams as PkgRemoveParams, type pkg_PkgRemoveResult as PkgRemoveResult, type pkg_PkgUpdateParams as PkgUpdateParams, type pkg_PkgUpdateResult as PkgUpdateResult, index$3 as apt, _default$3e as clean, index$2 as dnf, _default$3k as info, _default$3n as install, install as installCp, _default$3j as isInstalled, _default$3f as list, index as pacman, _default$3m as remove, _default$3i as removeCp, _default$3g as search, _default$3l as update, _default$3h as upgrade, index$1 as yum };
|
|
2949
2955
|
}
|
|
2950
2956
|
|
|
2951
2957
|
declare const K3supInstallInputSchema: z.ZodObject<{
|