-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from jaredwray/adding-in-console-support
Adding in console support
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export class WritrConsole { | ||
log(message: string): void { | ||
console.log(message); | ||
} | ||
|
||
error(message: string): void { | ||
console.error(message); | ||
} | ||
|
||
warn(message: string): void { | ||
console.warn(message); | ||
} | ||
|
||
printHelp(): void { | ||
console.log(' Usage: writr [options] [command] [arguments]'); | ||
console.log(); | ||
console.log(' Options:'); | ||
console.log(' -h, --help output usage information'); | ||
console.log(' -v, --version output the version number'); | ||
console.log(); | ||
console.log(' Commands:'); | ||
console.log(' init Initialize a new project'); | ||
console.log(' build Build the project'); | ||
console.log(' serve Serve the project'); | ||
console.log(); | ||
console.log(' Arguments:'); | ||
console.log(' -p, --port Set the port number used with serve'); | ||
console.log(' -s, --silent Disable logging'); | ||
console.log(' -o, --output Set the output directory'); | ||
console.log(' -p, --path Set the path where files are located'); | ||
console.log(' -t, --template Set the path where files are located'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters