hostctl 0.1.37 → 0.1.40
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/README.md +201 -189
- package/dist/bin/hostctl.js +960 -250
- package/dist/bin/hostctl.js.map +1 -1
- package/dist/index.d.ts +154 -72
- package/dist/index.js +4776 -3184
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,8 @@ declare class Identity {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
type YamlHost = {
|
|
24
|
-
|
|
24
|
+
host?: string;
|
|
25
|
+
port?: number;
|
|
25
26
|
user?: string;
|
|
26
27
|
password?: SecretRef | string;
|
|
27
28
|
'ssh-key'?: SecretRef | string;
|
|
@@ -114,7 +115,7 @@ declare class ConfigFile implements Config {
|
|
|
114
115
|
declare class Host {
|
|
115
116
|
config: ConfigFile;
|
|
116
117
|
hostname: string;
|
|
117
|
-
alias
|
|
118
|
+
alias: string;
|
|
118
119
|
port: number;
|
|
119
120
|
user?: string;
|
|
120
121
|
password?: SecretRef | string;
|
|
@@ -123,7 +124,7 @@ declare class Host {
|
|
|
123
124
|
tagSet: Set<string>;
|
|
124
125
|
constructor(config: ConfigFile, opts: {
|
|
125
126
|
hostname: string;
|
|
126
|
-
alias
|
|
127
|
+
alias: string;
|
|
127
128
|
port?: number;
|
|
128
129
|
user?: string;
|
|
129
130
|
password?: SecretRef | string;
|
|
@@ -133,7 +134,7 @@ declare class Host {
|
|
|
133
134
|
decryptedPassword(): Promise<string | undefined>;
|
|
134
135
|
decryptedSshKey(): Promise<string | undefined>;
|
|
135
136
|
toYAML(): {
|
|
136
|
-
|
|
137
|
+
host: string;
|
|
137
138
|
user: string | undefined;
|
|
138
139
|
port: number | undefined;
|
|
139
140
|
password: string | SecretRef | undefined;
|
|
@@ -149,7 +150,7 @@ declare class Host {
|
|
|
149
150
|
toObject(): {
|
|
150
151
|
hostname: string;
|
|
151
152
|
port: number;
|
|
152
|
-
alias: string
|
|
153
|
+
alias: string;
|
|
153
154
|
user: string | undefined;
|
|
154
155
|
tags: string[];
|
|
155
156
|
};
|
|
@@ -272,32 +273,6 @@ declare class Command {
|
|
|
272
273
|
};
|
|
273
274
|
}
|
|
274
275
|
|
|
275
|
-
declare class NodeRuntime {
|
|
276
|
-
tmpDir: Path;
|
|
277
|
-
static Name: string;
|
|
278
|
-
private client;
|
|
279
|
-
private alreadyInstalled;
|
|
280
|
-
private localNode;
|
|
281
|
-
private localNpm;
|
|
282
|
-
constructor(tmpDir: Path);
|
|
283
|
-
isNodeInstalledGlobally(): Promise<boolean>;
|
|
284
|
-
isNodeInstalledLocally(): Promise<boolean>;
|
|
285
|
-
isNpmInstalledGlobally(): Promise<boolean>;
|
|
286
|
-
isNpmInstalledLocally(): Promise<boolean>;
|
|
287
|
-
nodeCmd(): Promise<string>;
|
|
288
|
-
nodePath(): Promise<string | null>;
|
|
289
|
-
npmCmd(): Promise<string>;
|
|
290
|
-
npmPath(): Promise<string | null>;
|
|
291
|
-
installIfNeeded(): Promise<string | undefined>;
|
|
292
|
-
install(): Promise<string>;
|
|
293
|
-
listPackages(): Promise<string[]>;
|
|
294
|
-
downloadNodePackage(platform: string, arch: string): Promise<string>;
|
|
295
|
-
unzipPackage(packagePath: string): Promise<string>;
|
|
296
|
-
npmInstall(omitDev?: boolean, cwd?: string): Promise<CommandResult>;
|
|
297
|
-
npm(npmArgs: string, cwd?: string): Promise<CommandResult>;
|
|
298
|
-
node(nodeArgs: string, cwd?: string): Promise<CommandResult>;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
276
|
/**
|
|
302
277
|
* An object representing the mapping of expected output (as a regex string)
|
|
303
278
|
* to the input that should be provided in response.
|
|
@@ -683,6 +658,7 @@ declare class App {
|
|
|
683
658
|
osHomeDir(): Path;
|
|
684
659
|
hostctlDir(): Path;
|
|
685
660
|
hostctlTmpDir(): Path;
|
|
661
|
+
packagesDir(): Path;
|
|
686
662
|
randName(): string;
|
|
687
663
|
hostctlTmpPath(tmpName?: string): Path;
|
|
688
664
|
createNamedTmpDir(subDirName?: string): Path;
|
|
@@ -712,8 +688,6 @@ declare class App {
|
|
|
712
688
|
reportScriptResult(invocation: LocalInvocation<any, any>, scriptResult: RunFnReturnValue | Error): Promise<void>;
|
|
713
689
|
loadScriptAsModule(scriptRef: string): Promise<any>;
|
|
714
690
|
parseParams(scriptArgs: string[]): Object;
|
|
715
|
-
bundleProject(entrypointPath: string): Promise<void>;
|
|
716
|
-
generateBundle(nodeRuntime: NodeRuntime, packageFileDir: Path): Promise<Path>;
|
|
717
691
|
pathOfPackageJsonFile(path: string): Path | null;
|
|
718
692
|
printRuntimeReport(): Promise<void>;
|
|
719
693
|
promptPassword(message?: string): Promise<string>;
|
|
@@ -725,18 +699,23 @@ declare class Cli {
|
|
|
725
699
|
app: App;
|
|
726
700
|
program: cmdr.Command;
|
|
727
701
|
constructor();
|
|
728
|
-
handleBundle(path: string, options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
729
702
|
handleInventory(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
730
703
|
handleInventoryEncrypt(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
731
704
|
handleInventoryDecrypt(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
732
705
|
handleInventoryList(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
733
706
|
handleExec(commandParts: string | string[], options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
734
|
-
handleRun(
|
|
707
|
+
handleRun(packageRef: string | null, scriptRef: string | undefined, scriptArgs: string[], options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
735
708
|
deriveConfigRef(suppliedConfigRef?: string): string;
|
|
736
709
|
loadApp(opts: Record<string, any>): Promise<void>;
|
|
737
710
|
run(): Promise<void>;
|
|
738
711
|
handleRuntime(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
739
712
|
handleRuntimeInstall(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
|
|
713
|
+
handlePkgCreate(packageName: string, options: {
|
|
714
|
+
lang: 'typescript' | 'javascript';
|
|
715
|
+
}): Promise<void>;
|
|
716
|
+
handlePkgInstall(source: string): Promise<void>;
|
|
717
|
+
handlePkgList(): Promise<void>;
|
|
718
|
+
handlePkgRemove(packageIdentifier: string): Promise<void>;
|
|
740
719
|
}
|
|
741
720
|
|
|
742
721
|
interface WhoamiParams {
|
|
@@ -758,7 +737,7 @@ interface DirExistsParams {
|
|
|
758
737
|
interface DirExistsResult {
|
|
759
738
|
exists: boolean;
|
|
760
739
|
}
|
|
761
|
-
declare const _default
|
|
740
|
+
declare const _default$16: TaskFn<DirExistsParams, DirExistsResult>;
|
|
762
741
|
|
|
763
742
|
interface DirCopyParams {
|
|
764
743
|
from: string;
|
|
@@ -771,7 +750,7 @@ interface DirCopyParams {
|
|
|
771
750
|
interface DirCopyResult {
|
|
772
751
|
success: boolean;
|
|
773
752
|
}
|
|
774
|
-
declare const _default$
|
|
753
|
+
declare const _default$15: TaskFn<DirCopyParams, DirCopyResult>;
|
|
775
754
|
|
|
776
755
|
interface DirCreateParams {
|
|
777
756
|
path: string;
|
|
@@ -781,10 +760,10 @@ interface DirCreateParams {
|
|
|
781
760
|
interface DirCreateResult {
|
|
782
761
|
success: boolean;
|
|
783
762
|
}
|
|
784
|
-
declare const _default$
|
|
763
|
+
declare const _default$14: TaskFn<DirCreateParams, DirCreateResult>;
|
|
785
764
|
|
|
786
765
|
declare namespace dir {
|
|
787
|
-
export { _default$
|
|
766
|
+
export { _default$15 as copy, _default$14 as create, _default$16 as exists };
|
|
788
767
|
}
|
|
789
768
|
|
|
790
769
|
interface ChownParams {
|
|
@@ -798,7 +777,7 @@ interface ChownResult {
|
|
|
798
777
|
success: boolean;
|
|
799
778
|
error?: string;
|
|
800
779
|
}
|
|
801
|
-
declare const _default$
|
|
780
|
+
declare const _default$13: TaskFn<ChownParams, ChownResult>;
|
|
802
781
|
|
|
803
782
|
interface ChgrpParams {
|
|
804
783
|
path: string;
|
|
@@ -810,7 +789,7 @@ interface ChgrpResult {
|
|
|
810
789
|
success: boolean;
|
|
811
790
|
error?: string;
|
|
812
791
|
}
|
|
813
|
-
declare const _default$
|
|
792
|
+
declare const _default$12: TaskFn<ChgrpParams, ChgrpResult>;
|
|
814
793
|
|
|
815
794
|
interface ChmodParams {
|
|
816
795
|
path: string;
|
|
@@ -822,7 +801,7 @@ interface ChmodResult {
|
|
|
822
801
|
success: boolean;
|
|
823
802
|
error?: string;
|
|
824
803
|
}
|
|
825
|
-
declare const _default$
|
|
804
|
+
declare const _default$11: TaskFn<ChmodParams, ChmodResult>;
|
|
826
805
|
|
|
827
806
|
interface FileCopyParams {
|
|
828
807
|
from: string;
|
|
@@ -836,7 +815,7 @@ interface FileCopyParams {
|
|
|
836
815
|
interface FileCopyResult {
|
|
837
816
|
success: boolean;
|
|
838
817
|
}
|
|
839
|
-
declare const _default$
|
|
818
|
+
declare const _default$10: TaskFn<FileCopyParams, FileCopyResult>;
|
|
840
819
|
|
|
841
820
|
interface FileExistsParams {
|
|
842
821
|
path: string;
|
|
@@ -844,7 +823,7 @@ interface FileExistsParams {
|
|
|
844
823
|
interface FileExistsResult {
|
|
845
824
|
exists: boolean;
|
|
846
825
|
}
|
|
847
|
-
declare const _default
|
|
826
|
+
declare const _default$$: TaskFn<FileExistsParams, FileExistsResult>;
|
|
848
827
|
|
|
849
828
|
interface FileTouchParams {
|
|
850
829
|
file: string;
|
|
@@ -854,7 +833,7 @@ interface FileTouchParams {
|
|
|
854
833
|
interface FileTouchResult {
|
|
855
834
|
success: boolean;
|
|
856
835
|
}
|
|
857
|
-
declare const _default$
|
|
836
|
+
declare const _default$_: TaskFn<FileTouchParams, FileTouchResult>;
|
|
858
837
|
|
|
859
838
|
interface FileDeleteParams {
|
|
860
839
|
path: string;
|
|
@@ -864,7 +843,7 @@ interface FileDeleteParams {
|
|
|
864
843
|
interface FileDeleteResult {
|
|
865
844
|
success: boolean;
|
|
866
845
|
}
|
|
867
|
-
declare const _default$
|
|
846
|
+
declare const _default$Z: TaskFn<FileDeleteParams, FileDeleteResult>;
|
|
868
847
|
|
|
869
848
|
interface FileLinkParams {
|
|
870
849
|
/** Path the symlink should point TO (target). */
|
|
@@ -880,7 +859,7 @@ interface FileLinkResult {
|
|
|
880
859
|
changed: boolean;
|
|
881
860
|
success: boolean;
|
|
882
861
|
}
|
|
883
|
-
declare const _default$
|
|
862
|
+
declare const _default$Y: TaskFn<FileLinkParams, FileLinkResult>;
|
|
884
863
|
|
|
885
864
|
interface FileEditParams {
|
|
886
865
|
file: string;
|
|
@@ -900,7 +879,7 @@ interface FileEditResult {
|
|
|
900
879
|
changed: boolean;
|
|
901
880
|
success: boolean;
|
|
902
881
|
}
|
|
903
|
-
declare const _default$
|
|
882
|
+
declare const _default$X: TaskFn<FileEditParams, FileEditResult>;
|
|
904
883
|
|
|
905
884
|
interface FileGrepParams {
|
|
906
885
|
/** Path to the file to search */
|
|
@@ -936,7 +915,7 @@ interface FileGrepResult {
|
|
|
936
915
|
/** Matching lines (included only when return_lines=true) */
|
|
937
916
|
lines?: string[];
|
|
938
917
|
}
|
|
939
|
-
declare const _default$
|
|
918
|
+
declare const _default$W: TaskFn<FileGrepParams, FileGrepResult>;
|
|
940
919
|
|
|
941
920
|
type file_ChgrpParams = ChgrpParams;
|
|
942
921
|
type file_ChgrpResult = ChgrpResult;
|
|
@@ -959,7 +938,7 @@ type file_FileLinkResult = FileLinkResult;
|
|
|
959
938
|
type file_FileTouchParams = FileTouchParams;
|
|
960
939
|
type file_FileTouchResult = FileTouchResult;
|
|
961
940
|
declare namespace file {
|
|
962
|
-
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$
|
|
941
|
+
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$12 as chgrp, _default$11 as chmod, _default$13 as chown, _default$10 as copy, _default$Z as delete, _default$X as edit, _default$$ as exists, _default$W as grep, _default$Y as link, _default$_ as touch };
|
|
963
942
|
}
|
|
964
943
|
|
|
965
944
|
interface GitCloneParams {
|
|
@@ -969,7 +948,7 @@ interface GitCloneParams {
|
|
|
969
948
|
interface GitCloneResult {
|
|
970
949
|
success: boolean;
|
|
971
950
|
}
|
|
972
|
-
declare const _default$
|
|
951
|
+
declare const _default$V: TaskFn<GitCloneParams, GitCloneResult>;
|
|
973
952
|
|
|
974
953
|
interface GitPullParams {
|
|
975
954
|
/** The directory of the git repository on the host. */
|
|
@@ -987,7 +966,7 @@ interface GitPullResult {
|
|
|
987
966
|
/** Error message if the pull operation failed. */
|
|
988
967
|
error?: string;
|
|
989
968
|
}
|
|
990
|
-
declare const _default$
|
|
969
|
+
declare const _default$U: TaskFn<GitPullParams, GitPullResult>;
|
|
991
970
|
|
|
992
971
|
interface GitCheckoutParams {
|
|
993
972
|
/** The directory of the git repository on the host. */
|
|
@@ -1003,7 +982,7 @@ interface GitCheckoutResult {
|
|
|
1003
982
|
/** Error message if the checkout operation failed. */
|
|
1004
983
|
error?: string;
|
|
1005
984
|
}
|
|
1006
|
-
declare const _default$
|
|
985
|
+
declare const _default$T: TaskFn<GitCheckoutParams, GitCheckoutResult>;
|
|
1007
986
|
|
|
1008
987
|
type git_GitCheckoutParams = GitCheckoutParams;
|
|
1009
988
|
type git_GitCheckoutResult = GitCheckoutResult;
|
|
@@ -1012,7 +991,7 @@ type git_GitCloneResult = GitCloneResult;
|
|
|
1012
991
|
type git_GitPullParams = GitPullParams;
|
|
1013
992
|
type git_GitPullResult = GitPullResult;
|
|
1014
993
|
declare namespace git {
|
|
1015
|
-
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$
|
|
994
|
+
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$T as checkout, _default$V as clone, _default$U as pull };
|
|
1016
995
|
}
|
|
1017
996
|
|
|
1018
997
|
interface GroupCreateParams {
|
|
@@ -1023,7 +1002,7 @@ interface GroupCreateParams {
|
|
|
1023
1002
|
interface GroupCreateResult {
|
|
1024
1003
|
success: boolean;
|
|
1025
1004
|
}
|
|
1026
|
-
declare const _default$
|
|
1005
|
+
declare const _default$S: TaskFn<GroupCreateParams, GroupCreateResult>;
|
|
1027
1006
|
|
|
1028
1007
|
interface GroupDeleteParams {
|
|
1029
1008
|
group: string;
|
|
@@ -1034,7 +1013,7 @@ interface GroupDeleteResult {
|
|
|
1034
1013
|
success: boolean;
|
|
1035
1014
|
error?: string;
|
|
1036
1015
|
}
|
|
1037
|
-
declare const _default$
|
|
1016
|
+
declare const _default$R: TaskFn<GroupDeleteParams, GroupDeleteResult>;
|
|
1038
1017
|
|
|
1039
1018
|
interface GroupExistsParams {
|
|
1040
1019
|
group: string;
|
|
@@ -1042,7 +1021,7 @@ interface GroupExistsParams {
|
|
|
1042
1021
|
interface GroupExistsResult {
|
|
1043
1022
|
exists: boolean;
|
|
1044
1023
|
}
|
|
1045
|
-
declare const _default$
|
|
1024
|
+
declare const _default$Q: TaskFn<GroupExistsParams, GroupExistsResult>;
|
|
1046
1025
|
|
|
1047
1026
|
interface GroupInfo {
|
|
1048
1027
|
name: string;
|
|
@@ -1054,7 +1033,7 @@ interface GroupListResult {
|
|
|
1054
1033
|
success: boolean;
|
|
1055
1034
|
groups: GroupInfo[];
|
|
1056
1035
|
}
|
|
1057
|
-
declare const _default$
|
|
1036
|
+
declare const _default$P: TaskFn<GroupListParams, GroupListResult>;
|
|
1058
1037
|
|
|
1059
1038
|
interface GroupModifyParams {
|
|
1060
1039
|
/** The current name of the group. */
|
|
@@ -1071,7 +1050,7 @@ interface GroupModifyResult {
|
|
|
1071
1050
|
changed: boolean;
|
|
1072
1051
|
error?: string;
|
|
1073
1052
|
}
|
|
1074
|
-
declare const _default$
|
|
1053
|
+
declare const _default$O: TaskFn<GroupModifyParams, GroupModifyResult>;
|
|
1075
1054
|
|
|
1076
1055
|
type group_GroupCreateParams = GroupCreateParams;
|
|
1077
1056
|
type group_GroupCreateResult = GroupCreateResult;
|
|
@@ -1085,7 +1064,7 @@ type group_GroupListResult = GroupListResult;
|
|
|
1085
1064
|
type group_GroupModifyParams = GroupModifyParams;
|
|
1086
1065
|
type group_GroupModifyResult = GroupModifyResult;
|
|
1087
1066
|
declare namespace group {
|
|
1088
|
-
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$
|
|
1067
|
+
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$S as create, _default$R as delete, _default$Q as exists, _default$P as list, _default$O as modify };
|
|
1089
1068
|
}
|
|
1090
1069
|
|
|
1091
1070
|
interface OSInfo {
|
|
@@ -1120,12 +1099,12 @@ interface HostSummary {
|
|
|
1120
1099
|
interface HostInfoResult {
|
|
1121
1100
|
host: HostInfo;
|
|
1122
1101
|
}
|
|
1123
|
-
declare const _default$
|
|
1102
|
+
declare const _default$N: TaskFn<ObjectType, HostInfoResult>;
|
|
1124
1103
|
|
|
1125
1104
|
interface HostSummaryResult {
|
|
1126
1105
|
host: HostSummary;
|
|
1127
1106
|
}
|
|
1128
|
-
declare const _default$
|
|
1107
|
+
declare const _default$M: TaskFn<ObjectType, HostSummaryResult>;
|
|
1129
1108
|
|
|
1130
1109
|
interface OsDetailsResult {
|
|
1131
1110
|
success: boolean;
|
|
@@ -1142,7 +1121,7 @@ interface OsDetailsResult {
|
|
|
1142
1121
|
* Determines the operating system family, specific OS, variant, and version.
|
|
1143
1122
|
* @returns {OsDetailsResult}
|
|
1144
1123
|
*/
|
|
1145
|
-
declare const _default$
|
|
1124
|
+
declare const _default$L: TaskFn<ObjectType, OsDetailsResult>;
|
|
1146
1125
|
|
|
1147
1126
|
interface HostnameParams {
|
|
1148
1127
|
new_name?: string;
|
|
@@ -1151,7 +1130,7 @@ interface HostnameResult {
|
|
|
1151
1130
|
hostname: string;
|
|
1152
1131
|
updated: boolean;
|
|
1153
1132
|
}
|
|
1154
|
-
declare const _default$
|
|
1133
|
+
declare const _default$K: TaskFn<HostnameParams, HostnameResult>;
|
|
1155
1134
|
|
|
1156
1135
|
type host_HostInfo = HostInfo;
|
|
1157
1136
|
type host_HostInfoResult = HostInfoResult;
|
|
@@ -1164,8 +1143,39 @@ type host_LSCPUChild = LSCPUChild;
|
|
|
1164
1143
|
type host_OSInfo = OSInfo;
|
|
1165
1144
|
type host_OsDetailsResult = OsDetailsResult;
|
|
1166
1145
|
declare namespace host {
|
|
1167
|
-
export { 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$
|
|
1146
|
+
export { 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$K as hostname, _default$N as info, _default$L as os, _default$M as summary };
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
interface AbstractPkgParams {
|
|
1150
|
+
/** Package name or array of package names */
|
|
1151
|
+
package: string | string[];
|
|
1152
|
+
/** Run commands with sudo (default true for most operations) */
|
|
1153
|
+
sudo?: boolean;
|
|
1154
|
+
/** Force use of specific package manager (auto-detect if not specified) */
|
|
1155
|
+
packageManager?: string;
|
|
1156
|
+
/** Additional arguments to pass to the package manager */
|
|
1157
|
+
extraArgs?: string;
|
|
1158
|
+
}
|
|
1159
|
+
interface AbstractPkgResult {
|
|
1160
|
+
success: boolean;
|
|
1161
|
+
error?: string;
|
|
1162
|
+
packageManager?: string;
|
|
1163
|
+
output?: string;
|
|
1164
|
+
packages?: AbstractPkgInfo[];
|
|
1168
1165
|
}
|
|
1166
|
+
interface AbstractPkgInfo {
|
|
1167
|
+
name: string;
|
|
1168
|
+
version?: string;
|
|
1169
|
+
architecture?: string;
|
|
1170
|
+
status?: string;
|
|
1171
|
+
[key: string]: any;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
interface AbstractPkgInstallParams extends AbstractPkgParams {
|
|
1175
|
+
}
|
|
1176
|
+
interface AbstractPkgInstallResult extends AbstractPkgResult {
|
|
1177
|
+
}
|
|
1178
|
+
declare const _default$J: TaskFn<AbstractPkgInstallParams, AbstractPkgInstallResult>;
|
|
1169
1179
|
|
|
1170
1180
|
interface BasePkgParams {
|
|
1171
1181
|
/** Package name or array of package names */
|
|
@@ -1204,11 +1214,9 @@ interface PkgIsInstalledResult {
|
|
|
1204
1214
|
installed: boolean;
|
|
1205
1215
|
}
|
|
1206
1216
|
|
|
1207
|
-
declare const _default$
|
|
1208
|
-
|
|
1209
|
-
declare const _default$B: TaskFn<PkgRemoveParams, PkgRemoveResult>;
|
|
1217
|
+
declare const _default$I: TaskFn<PkgRemoveParams, PkgRemoveResult>;
|
|
1210
1218
|
|
|
1211
|
-
declare const _default$
|
|
1219
|
+
declare const _default$H: TaskFn<PkgUpdateParams, PkgUpdateResult>;
|
|
1212
1220
|
|
|
1213
1221
|
interface PkgInfoParams {
|
|
1214
1222
|
package: string;
|
|
@@ -1218,10 +1226,84 @@ interface PkgInfoResult {
|
|
|
1218
1226
|
success: boolean;
|
|
1219
1227
|
error?: string;
|
|
1220
1228
|
}
|
|
1221
|
-
declare const _default$
|
|
1229
|
+
declare const _default$G: TaskFn<PkgInfoParams, PkgInfoResult>;
|
|
1230
|
+
|
|
1231
|
+
declare const _default$F: TaskFn<PkgIsInstalledParams, PkgIsInstalledResult>;
|
|
1232
|
+
|
|
1233
|
+
declare const _default$E: TaskFn<PkgInstallParams, PkgInstallResult>;
|
|
1234
|
+
|
|
1235
|
+
interface AbstractPkgUninstallParams extends AbstractPkgParams {
|
|
1236
|
+
}
|
|
1237
|
+
interface AbstractPkgUninstallResult extends AbstractPkgResult {
|
|
1238
|
+
}
|
|
1239
|
+
declare const _default$D: TaskFn<AbstractPkgUninstallParams, AbstractPkgUninstallResult>;
|
|
1240
|
+
|
|
1241
|
+
interface AbstractPkgUpdateParams {
|
|
1242
|
+
/** Run commands with sudo (default true) */
|
|
1243
|
+
sudo?: boolean;
|
|
1244
|
+
/** Force use of specific package manager (auto-detect if not specified) */
|
|
1245
|
+
packageManager?: string;
|
|
1246
|
+
/** Additional arguments to pass to the package manager */
|
|
1247
|
+
extraArgs?: string;
|
|
1248
|
+
}
|
|
1249
|
+
interface AbstractPkgUpdateResult extends AbstractPkgResult {
|
|
1250
|
+
}
|
|
1251
|
+
declare const _default$C: TaskFn<AbstractPkgUpdateParams, AbstractPkgUpdateResult>;
|
|
1252
|
+
|
|
1253
|
+
interface AbstractPkgUpgradeParams {
|
|
1254
|
+
/** Run commands with sudo (default true) */
|
|
1255
|
+
sudo?: boolean;
|
|
1256
|
+
/** Force use of specific package manager (auto-detect if not specified) */
|
|
1257
|
+
packageManager?: string;
|
|
1258
|
+
/** Additional arguments to pass to the package manager */
|
|
1259
|
+
extraArgs?: string;
|
|
1260
|
+
}
|
|
1261
|
+
interface AbstractPkgUpgradeResult extends AbstractPkgResult {
|
|
1262
|
+
}
|
|
1263
|
+
declare const _default$B: TaskFn<AbstractPkgUpgradeParams, AbstractPkgUpgradeResult>;
|
|
1264
|
+
|
|
1265
|
+
interface AbstractPkgSearchParams {
|
|
1266
|
+
/** Search query */
|
|
1267
|
+
query: string;
|
|
1268
|
+
/** Force use of specific package manager (auto-detect if not specified) */
|
|
1269
|
+
packageManager?: string;
|
|
1270
|
+
}
|
|
1271
|
+
interface AbstractPkgSearchResult extends AbstractPkgResult {
|
|
1272
|
+
}
|
|
1273
|
+
declare const _default$A: TaskFn<AbstractPkgSearchParams, AbstractPkgSearchResult>;
|
|
1222
1274
|
|
|
1223
|
-
|
|
1275
|
+
interface AbstractPkgListParams {
|
|
1276
|
+
/** Force use of specific package manager (auto-detect if not specified) */
|
|
1277
|
+
packageManager?: string;
|
|
1278
|
+
}
|
|
1279
|
+
interface AbstractPkgListResult extends AbstractPkgResult {
|
|
1280
|
+
}
|
|
1281
|
+
declare const _default$z: TaskFn<AbstractPkgListParams, AbstractPkgListResult>;
|
|
1282
|
+
|
|
1283
|
+
interface AbstractPkgCleanParams {
|
|
1284
|
+
/** Force use of specific package manager (auto-detect if not specified) */
|
|
1285
|
+
packageManager?: string;
|
|
1286
|
+
}
|
|
1287
|
+
interface AbstractPkgCleanResult extends AbstractPkgResult {
|
|
1288
|
+
}
|
|
1289
|
+
declare const _default$y: TaskFn<AbstractPkgCleanParams, AbstractPkgCleanResult>;
|
|
1224
1290
|
|
|
1291
|
+
type pkg_AbstractPkgCleanParams = AbstractPkgCleanParams;
|
|
1292
|
+
type pkg_AbstractPkgCleanResult = AbstractPkgCleanResult;
|
|
1293
|
+
type pkg_AbstractPkgInstallParams = AbstractPkgInstallParams;
|
|
1294
|
+
type pkg_AbstractPkgInstallResult = AbstractPkgInstallResult;
|
|
1295
|
+
type pkg_AbstractPkgListParams = AbstractPkgListParams;
|
|
1296
|
+
type pkg_AbstractPkgListResult = AbstractPkgListResult;
|
|
1297
|
+
type pkg_AbstractPkgParams = AbstractPkgParams;
|
|
1298
|
+
type pkg_AbstractPkgResult = AbstractPkgResult;
|
|
1299
|
+
type pkg_AbstractPkgSearchParams = AbstractPkgSearchParams;
|
|
1300
|
+
type pkg_AbstractPkgSearchResult = AbstractPkgSearchResult;
|
|
1301
|
+
type pkg_AbstractPkgUninstallParams = AbstractPkgUninstallParams;
|
|
1302
|
+
type pkg_AbstractPkgUninstallResult = AbstractPkgUninstallResult;
|
|
1303
|
+
type pkg_AbstractPkgUpdateParams = AbstractPkgUpdateParams;
|
|
1304
|
+
type pkg_AbstractPkgUpdateResult = AbstractPkgUpdateResult;
|
|
1305
|
+
type pkg_AbstractPkgUpgradeParams = AbstractPkgUpgradeParams;
|
|
1306
|
+
type pkg_AbstractPkgUpgradeResult = AbstractPkgUpgradeResult;
|
|
1225
1307
|
type pkg_PkgInfoParams = PkgInfoParams;
|
|
1226
1308
|
type pkg_PkgInfoResult = PkgInfoResult;
|
|
1227
1309
|
type pkg_PkgInstallParams = PkgInstallParams;
|
|
@@ -1233,7 +1315,7 @@ type pkg_PkgRemoveResult = PkgRemoveResult;
|
|
|
1233
1315
|
type pkg_PkgUpdateParams = PkgUpdateParams;
|
|
1234
1316
|
type pkg_PkgUpdateResult = PkgUpdateResult;
|
|
1235
1317
|
declare namespace pkg {
|
|
1236
|
-
export { 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, _default$
|
|
1318
|
+
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, _default$y as abstractClean, _default$A as abstractSearch, _default$D as abstractUninstall, _default$C as abstractUpdate, _default$B as abstractUpgrade, _default$G as info, _default$J as install, _default$E as installOrig, _default$F as isInstalled, _default$z as list, _default$I as remove, _default$H as update };
|
|
1237
1319
|
}
|
|
1238
1320
|
|
|
1239
1321
|
interface K3supInstallParams {
|