mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chores
This commit is contained in:
@@ -125,6 +125,7 @@ export type Utils<
|
|||||||
command: ValidIfNoStupidEscape<A> | [string, ...string[]],
|
command: ValidIfNoStupidEscape<A> | [string, ...string[]],
|
||||||
options: CommandOptions & {
|
options: CommandOptions & {
|
||||||
mounts?: { path: string; options: MountOptions }[]
|
mounts?: { path: string; options: MountOptions }[]
|
||||||
|
overlay?: Overlay
|
||||||
},
|
},
|
||||||
) => Promise<DaemonReturned>
|
) => Promise<DaemonReturned>
|
||||||
store: {
|
store: {
|
||||||
@@ -224,10 +225,11 @@ export const createUtils = <
|
|||||||
command: ValidIfNoStupidEscape<A> | [string, ...string[]],
|
command: ValidIfNoStupidEscape<A> | [string, ...string[]],
|
||||||
options: CommandOptions & {
|
options: CommandOptions & {
|
||||||
mounts?: { path: string; options: MountOptions }[]
|
mounts?: { path: string; options: MountOptions }[]
|
||||||
|
overlay?: Overlay
|
||||||
},
|
},
|
||||||
): Promise<DaemonReturned> => {
|
): Promise<DaemonReturned> => {
|
||||||
const commands = splitCommand(command)
|
const commands = splitCommand(command)
|
||||||
const overlay = await Overlay.of(effects, imageId)
|
const overlay = options.overlay || (await Overlay.of(effects, imageId))
|
||||||
for (let mount of options.mounts || []) {
|
for (let mount of options.mounts || []) {
|
||||||
await overlay.mount(mount.options, mount.path)
|
await overlay.mount(mount.options, mount.path)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user