-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source of Alpha-1.0.1 Very Little Bit Changed Folder Structure. At ne…
…xt commit i will try to make Source Structure Good!
- Loading branch information
1 parent
9c6521c
commit f83a06e
Showing
13 changed files
with
46 additions
and
11 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
.vim | ||
test | ||
tests | ||
*.exe | ||
build | ||
native-cpp | ||
.gitignore | ||
|
||
deno/binaries | ||
.env | ||
.gitignore |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"tasks": { | ||
"dev": "deno run --allow-write --allow-read --allow-run main.ts ./tests/test.cpp", | ||
"build": "deno compile --allow-write --allow-run --allow-read main.ts" | ||
"dev": "deno run --allow-env --allow-write --allow-read --allow-run main.ts", | ||
"build": "deno compile --allow-env --output ../build/deno/cmon.exe --allow-write --allow-run --allow-read main.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import { bold, blue,green, red, yellow, italic} from "https://deno.land/[email protected]/fmt/colors.ts"; | ||
import checkFolder from "./src/checkFolder.ts"; | ||
import {checkFolder, showVersion} from "./src/index.ts"; | ||
|
||
const printFileError = (): void => { | ||
console.log(red(bold("Error At Loading File. Please Make Sure You provided correct Name"))); | ||
} | ||
|
||
|
||
if(Deno.args[0] == undefined) { | ||
printFileError(); | ||
Deno.exit(0); | ||
} | ||
if(Deno.args[0] == 'version') { | ||
console.log(bold(yellow('Version'))); | ||
console.log(showVersion()); | ||
Deno.exit(0); | ||
} | ||
|
||
const PATH = Deno.args[0]; | ||
|
||
|
@@ -8,9 +23,6 @@ const fileNameArr = Deno.args[0].split('/'); | |
const FILE_NAME = fileNameArr.at(-1); | ||
|
||
|
||
const printFileError = (): void => { | ||
console.log(red(bold("Error At Loading File. Please Make Sure You provided correct Name"))); | ||
} | ||
if(!FILE_NAME) { | ||
printFileError(); | ||
Deno.exit(0); | ||
|
File renamed without changes.
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,5 @@ | ||
import checkFolder from './checkFolder/checkFolder.ts'; | ||
import showVersion from './version/version.ts' | ||
|
||
|
||
export {checkFolder, showVersion}; |
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,8 @@ | ||
import showVersion from './version.ts'; | ||
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
|
||
|
||
Deno.test("Print Version Test", () => { | ||
const ver = showVersion(); | ||
assertEquals(ver, Deno.env.get("VERSION")); | ||
}); |
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,7 @@ | ||
import "https://deno.land/x/dotenv/load.ts"; | ||
|
||
const showVersion = (): string | undefined => { | ||
return Deno.env.get('VERSION'); | ||
} | ||
|
||
export default showVersion; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes