Skip to content

Commit

Permalink
chore(docs): add version reqs to cli help and readme (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
GJZwiers committed Mar 19, 2022
1 parent 286b8aa commit 0cdfdbd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ this module is purely for generating config.
## Installation

```
deno install --allow-read --allow-write -fn deno-init https://deno.land/x/init@v2.4.2/mod.ts
deno install --allow-read --allow-write -fn deno-init https://deno.land/x/init@v2.4.3/mod.ts
```

## Usage
Expand Down Expand Up @@ -77,13 +77,15 @@ deno-init --fmt
deno-init --lint
```

`--map` or `-p` will add an `importMap` section only.
`--map` or `-p` will add an `importMap` section only. Note that this option
requires Deno 1.20 or higher.

```
deno-init --map
```

`--task` or `-k` will add a `tasks` section only.
`--task` or `-k` will add a `tasks` section only. Note that this option requires
Deno 1.20 or higher.

```
deno-init --task
Expand Down
2 changes: 1 addition & 1 deletion egg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"entry": "./mod.ts",
"description": "Generate a Deno configuration file.",
"unstable": false,
"version": "v2.4.2",
"version": "v2.4.3",
"files": [
"./**/*.ts",
"./README.md",
Expand Down
8 changes: 4 additions & 4 deletions init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ask } from "./ask.ts";

await new Command()
.name("deno-init")
.version("v2.4.2")
.version("v2.4.3")
.description("Generate a Deno configuration file.")
.help({
colors: (Deno.build.os === "windows") ? false : true,
Expand All @@ -19,7 +19,7 @@ await new Command()
)
.option(
"-f, --force [force:boolean]",
"Force overwriting any existing config file.",
"Allow overwriting an existing config file.",
)
.option(
"-n, --name [name:string]",
Expand All @@ -34,15 +34,15 @@ await new Command()
)
.option(
"-p, --map [map:boolean]",
"Set up config for an import map.",
"Set up config for an import map. Requires Deno 1.20 or higher",
)
.option(
"-l, --lint [lint:boolean]",
"Set up config for deno lint only.",
)
.option(
"-k, --task [task:boolean]",
"Set up config for deno tasks only.",
"Set up config for deno tasks only. Requires Deno 1.20 or higher",
)
.option(
"-t, --tsconfig [tsconfig:boolean]",
Expand Down

0 comments on commit 0cdfdbd

Please sign in to comment.