add sh shorthand
This commit is contained in:
parent
0f5b0d18d8
commit
12f109adf3
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import { next, range } from "./utils.ts";
|
||||
import { next } from "./utils.ts";
|
||||
import { range } from "./Range.ts";
|
||||
|
||||
export function it<T>(iter: Iterable<T>) {
|
||||
return new Iter(iter);
|
||||
|
|
|
@ -33,3 +33,7 @@ export function log_from(meta: ImportMeta, logging_function = console.log) {
|
|||
const prefix = `[${path}]`;
|
||||
return (...args: unknown[]) => logging_function(prefix, ...args);
|
||||
}
|
||||
|
||||
export function sh(line: string) {
|
||||
return new Deno.Command("bash", { args: ["-c", line] });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue