Skip to content

Commit

Permalink
feat: add short name export (#4)
Browse files Browse the repository at this point in the history
Adds `x` as a short name alias for `exec`.
  • Loading branch information
43081j authored Jun 14, 2024
1 parent f2f0458 commit e8047c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@ export class ExecProcess implements Result {
};
}

export const exec: TinyExec = (command, args, userOptions) => {
export const x: TinyExec = (command, args, userOptions) => {
const proc = new ExecProcess(command, args, userOptions);

proc.spawn();

return proc;
};

export const exec = x;

0 comments on commit e8047c3

Please sign in to comment.