@jahands/dagger-helpers
Version:
dagger.io helpers for my own projects - not meant for public use
33 lines • 689 B
TypeScript
/**
* Shell options for a given command
*/
export type ShellOptions = {
/**
* Prefix to add to all commands.
*
* @default
* ```sh
* # bash, zsh
* set -euo pipefail;
* # sh
* set -eu;
* ```
*/
prefix?: string;
};
/**
* Create a new shell helper with the given shell type
*
* @param shellName - The name of the shell to use
*
* @example
*
* ```ts
* const sh = shell('bash')
*
* const con = dag.container()
* .withExec(sh('echo hello world!'))
* ```
*/
export declare function shell(shellName: 'sh' | 'bash' | 'zsh'): (input: string | string[], options?: ShellOptions) => string[];
//# sourceMappingURL=shell.d.ts.map