Skip to content

Commit

Permalink
feat(tasks): adds clear task
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Feb 17, 2021
1 parent 689c555 commit 94ed15c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tasks/create/clear.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Task, Context } from '../../definitions';

export function clear(): Task.Sync {
return (ctx: Context): void => {
ctx.stdio[1].write('\x1Bc');
};
}
1 change: 1 addition & 0 deletions src/tasks/create/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './clear';
export * from './log';
export * from './print';

0 comments on commit 94ed15c

Please sign in to comment.