-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from crewdevio/development
Maven information
- Loading branch information
Showing
5 changed files
with
413 additions
and
45 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
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,37 @@ | ||
/** | ||
* Copyright (c) Crew Dev. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
|
||
import { colors } from "./deps.ts"; | ||
|
||
async function main() { | ||
const [command, ...args] = Deno.args; | ||
|
||
if (command === "start") { | ||
const process = Deno.run({ | ||
cmd: ["deno", "test", "--allow-hrtime", ...args], | ||
}); | ||
|
||
if ((await process.status()).success) { | ||
Deno.close(process.rid); | ||
} else { | ||
Deno.close(process.rid); | ||
throw new Error(colors.red("something went wrong trying to run the test")) | ||
.message; | ||
} | ||
} else if (command === "help") { | ||
console.log("help info..."); | ||
} else { | ||
throw new Error( | ||
colors.red("this command was not found, try run: merlin help") | ||
).message; | ||
} | ||
} | ||
|
||
if (import.meta.main) { | ||
await main(); | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
|
||
export * from "https://deno.land/x/[email protected]/mod.ts"; | ||
export * as colors from "https://deno.land/std/fmt/colors.ts"; | ||
export * from "https://deno.land/std/testing/asserts.ts"; | ||
export * from "https://deno.land/std/testing/bench.ts"; |
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
Oops, something went wrong.