Skip to content

Commit 38fc87b

Browse files
committed
extracted VERSION from the entry script
1 parent 6dd66f2 commit 38fc87b

15 files changed

+5
-3
lines changed

git-mirror.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import { colors } from "jsr:@cliffy/ansi@^1.0.0-rc.7/colors";
33
import { Command } from "jsr:@cliffy/command@^1.0.0-rc.7";
44
import { Confirm } from "jsr:@cliffy/[email protected]/confirm";
55
import { exists } from "jsr:@std/fs";
6-
import { HOME_DIR } from "./utils/constants.ts";
6+
import { HOME_DIR } from "./src/constants.ts";
77
import {
88
cloneRepo,
99
fetchRepo,
1010
findExecutable,
1111
getLocalPath,
1212
runExecutable,
13-
} from "./utils/mod.ts";
13+
} from "./src/mod.ts";
14+
import { VERSION } from "./src/version.ts";
1415

1516
interface CloneOptions {
1617
openVsCode?: boolean;
@@ -80,7 +81,7 @@ const cloneAction = async (options: CloneOptions, repo: string) => {
8081

8182
await new Command()
8283
.name("git-mirror")
83-
.version("0.1.8")
84+
.version(VERSION)
8485
.description("Clone/Fetch a Git repository into a 'Projects' directory")
8586
.arguments("<repo:string>")
8687
.option("-r, --root <rootDir>", "The root directory.", {
File renamed without changes.

0 commit comments

Comments
 (0)