Skip to content

Commit 0218398

Browse files
committed
chore: ⬆️ Update eggs to [email protected]
1 parent 42708f4 commit 0218398

File tree

12 files changed

+47
-57
lines changed

12 files changed

+47
-57
lines changed

Diff for: README.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
**Note: You need to upgrade to Deno v1.6.0 or newer in order to use our CLI.**
5656

5757
```shell script
58-
deno install -Afq --unstable https://x.nest.land/[email protected].5/eggs.ts
58+
deno install -Afq --unstable https://x.nest.land/[email protected].6/eggs.ts
5959
```
6060

6161
For more information, see the [documentation](https://docs.nest.land/).
@@ -129,14 +129,6 @@ eggs update # Updates everything
129129
eggs update http fs eggs # Updates only http, fs, eggs
130130
```
131131

132-
Scripts installed with `eggs install` can also be updated with the `-g`
133-
parameter.
134-
135-
```shell script
136-
eggs update -g # Updates every script installed with eggs install
137-
eggs update eggs denon -g # Updates only eggs, denon
138-
```
139-
140132
Several registries are supported. The current ones are:
141133

142134
- x.nest.land

Diff for: benchmarks/commands/update/deps.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ export {
33
bench,
44
runBenchmarks,
55
} from "https://x.nest.land/[email protected]/testing/bench.ts";
6-
import * as archive from "https://x.nest.land/[email protected]/archive/tar.ts";
7-
import * as denoSync from "https://x.nest.land/[email protected]/async/mod.ts";
8-
import * as bytes from "https://x.nest.land/[email protected]/bytes/mod.ts";
9-
import * as dateTime from "https://x.nest.land/[email protected]/datetime/mod.ts";
10-
import * as colors from "https://x.nest.land/[email protected]/fmt/colors.ts";
11-
import * as sha512 from "https://x.nest.land/[email protected]/hash/sha512.ts";
12-
import * as http from "https://x.nest.land/[email protected]/http/mod.ts";
13-
import * as io from "https://x.nest.land/[email protected]/io/mod.ts";
14-
import * as log from "https://x.nest.land/[email protected]/log/mod.ts";
6+
import * as _archive from "https://x.nest.land/[email protected]/archive/tar.ts";
7+
import * as _denoSync from "https://x.nest.land/[email protected]/async/mod.ts";
8+
import * as _bytes from "https://x.nest.land/[email protected]/bytes/mod.ts";
9+
import * as _dateTime from "https://x.nest.land/[email protected]/datetime/mod.ts";
10+
import * as _colors from "https://x.nest.land/[email protected]/fmt/colors.ts";
11+
import * as _sha512 from "https://x.nest.land/[email protected]/hash/sha512.ts";
12+
import * as _http from "https://x.nest.land/[email protected]/http/mod.ts";
13+
import * as _io from "https://x.nest.land/[email protected]/io/mod.ts";
14+
import * as _log from "https://x.nest.land/[email protected]/log/mod.ts";
1515

1616
// deno land 3rd party
17-
import * as dmm from "https://deno.land/x/[email protected]/mod.ts";
18-
import * as drash from "https://deno.land/x/[email protected]/mod.ts";
19-
import * as bcrypt from "https://deno.land/x/[email protected]/mod.ts";
17+
import * as _dmm from "https://deno.land/x/[email protected]/mod.ts";
18+
import * as _drash from "https://deno.land/x/[email protected]/mod.ts";
19+
import * as _bcrypt from "https://deno.land/x/[email protected]/mod.ts";

Diff for: deps.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,56 @@ export {
99
join,
1010
relative,
1111
resolve,
12-
} from "https://x.nest.land/std@0.80.0/path/mod.ts";
12+
} from "https://x.nest.land/std@0.93.0/path/mod.ts";
1313

1414
export {
1515
exists,
1616
existsSync,
1717
expandGlob,
1818
expandGlobSync,
1919
walkSync,
20-
} from "https://x.nest.land/std@0.80.0/fs/mod.ts";
20+
} from "https://x.nest.land/std@0.93.0/fs/mod.ts";
2121

22-
export * as log from "https://x.nest.land/std@0.80.0/log/mod.ts";
22+
export * as log from "https://x.nest.land/std@0.93.0/log/mod.ts";
2323

24-
export { LogRecord } from "https://x.nest.land/std@0.80.0/log/logger.ts";
24+
export { LogRecord } from "https://x.nest.land/std@0.93.0/log/logger.ts";
2525

26-
export type { LevelName } from "https://x.nest.land/std@0.80.0/log/levels.ts";
27-
export { LogLevels } from "https://x.nest.land/std@0.80.0/log/levels.ts";
26+
export type { LevelName } from "https://x.nest.land/std@0.93.0/log/levels.ts";
27+
export { LogLevels } from "https://x.nest.land/std@0.93.0/log/levels.ts";
2828

29-
export { BaseHandler } from "https://x.nest.land/std@0.80.0/log/handlers.ts";
29+
export { BaseHandler } from "https://x.nest.land/std@0.93.0/log/handlers.ts";
3030

31-
export * from "https://x.nest.land/std@0.80.0/fmt/colors.ts";
31+
export * from "https://x.nest.land/std@0.93.0/fmt/colors.ts";
3232

3333
export {
3434
assert,
3535
assertEquals,
3636
assertMatch,
37-
} from "https://x.nest.land/std@0.80.0/testing/asserts.ts";
37+
} from "https://x.nest.land/std@0.93.0/testing/asserts.ts";
3838

3939
export {
4040
parse as parseYaml,
4141
stringify as stringifyYaml,
42-
} from "https://x.nest.land/std@0.80.0/encoding/yaml.ts";
42+
} from "https://x.nest.land/std@0.93.0/encoding/yaml.ts";
4343

4444
/**************** cliffy ****************/
4545
export {
4646
Command,
4747
CompletionsCommand,
4848
HelpCommand,
49-
} from "https://x.nest.land/cliffy@0.16.0/command/mod.ts";
49+
} from "https://x.nest.land/cliffy@0.18.2/command/mod.ts";
5050

51-
export { string as stringType } from "https://x.nest.land/cliffy@0.16.0/flags/types/string.ts";
51+
export { string as stringType } from "https://x.nest.land/cliffy@0.18.2/flags/types/string.ts";
5252

5353
export {
5454
Checkbox,
5555
Confirm,
5656
Input,
5757
List,
5858
Select,
59-
} from "https://x.nest.land/cliffy@0.16.0/prompt/mod.ts";
59+
} from "https://x.nest.land/cliffy@0.18.2/prompt/mod.ts";
6060

61-
export type { ITypeInfo } from "https://x.nest.land/cliffy@0.16.0/flags/types.ts";
61+
export type { ITypeInfo } from "https://x.nest.land/cliffy@0.18.2/flags/types.ts";
6262

6363
/**************** semver ****************/
6464
export * as semver from "https://deno.land/x/[email protected]/mod.ts";
@@ -83,4 +83,4 @@ export type { DependencyTree } from "https://x.nest.land/[email protected]/deno/tre
8383
export { dependencyTree } from "https://x.nest.land/[email protected]/deno/tree.ts";
8484

8585
/**************** wait ****************/
86-
export { Spinner, wait } from "https://deno.land/x/[email protected].7/mod.ts";
86+
export { Spinner, wait } from "https://deno.land/x/[email protected].10/mod.ts";

Diff for: eggs.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const eggs = new Command<DefaultOptions, []>()
5858
{ global: true },
5959
)
6060
.action(() => {
61-
eggs.help();
61+
eggs.showHelp();
6262
})
6363
.command("help", new HelpCommand())
6464
.command("completions", new CompletionsCommand())
@@ -91,9 +91,9 @@ try {
9191
) {
9292
const command = Deno.args[0] as keyof typeof commands;
9393
if (command in commands) {
94-
commands[command].help();
94+
commands[command].showHelp();
9595
} else {
96-
eggs.help();
96+
eggs.showHelp();
9797
}
9898
log.error(err.message);
9999
} else {

Diff for: src/api/common.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { envENDPOINT } from "../utilities/environment.ts";
33
export const ENDPOINT = envENDPOINT();
44

55
// TODO(@qu4k): develop mock api
6-
let MOCK = false;
6+
let _MOCK = false;
77

88
export function enableMockApi() {
9-
MOCK = true;
9+
_MOCK = true;
1010
}
1111

1212
export async function apiFetch(

Diff for: src/commands/init.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
basename,
3-
Checkbox,
43
Command,
54
Confirm,
65
Input,

Diff for: src/commands/install.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command, installHatcher, log } from "../../deps.ts";
1+
import { Command, installHatcher } from "../../deps.ts";
22
import type { DefaultOptions } from "../commands.ts";
33
import { version } from "../version.ts";
44
import { setupLog } from "../utilities/log.ts";
@@ -11,7 +11,7 @@ export async function install(
1111

1212
/** help option need to be parsed manually */
1313
if (["-h", "--help", "help"].includes(args[0])) {
14-
installCommand.help();
14+
installCommand.showHelp();
1515
return;
1616
}
1717

Diff for: src/commands/publish.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
import {
2-
basename,
2+
basename as _basename,
33
bold,
44
Command,
55
Confirm,
6-
dependencyTree,
6+
dependencyTree as _dependencyTree,
77
dim,
8-
dirname,
8+
dirname as _dirname,
99
existsSync,
1010
globToRegExp,
1111
gray,
1212
green,
1313
isVersionUnstable,
1414
italic,
15-
join,
15+
join as _join,
1616
log,
1717
relative,
1818
semver,
19-
stringType,
20-
yellow,
2119
} from "../../deps.ts";
2220
import type { DefaultOptions } from "../commands.ts";
2321
import { releaseType, urlType, versionType } from "../utilities/types.ts";
@@ -95,7 +93,7 @@ function ensureFiles(config: Config, matched: MatchedFile[]): boolean {
9593
return true;
9694
}
9795

98-
async function deprecationWarnings(config: Config) {
96+
async function deprecationWarnings(_config: Config) {
9997
// no deprecated feature for the time being :)
10098
}
10199

@@ -204,7 +202,8 @@ async function checkUp(
204202
}
205203
}
206204

207-
if (config.checkInstallation ?? config.check) {
205+
// Test disabled: analyzer is still unstable
206+
/* if (config.checkInstallation ?? config.check) {
208207
const wait = spinner.info("Test installation...");
209208
const tempDir = await Deno.makeTempDir();
210209
for (let i = 0; i < matched.length; i++) {
@@ -236,7 +235,7 @@ async function checkUp(
236235
}
237236
return false;
238237
}
239-
}
238+
} */
240239

241240
return true;
242241
}

Diff for: src/context/ignore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function parseIgnore(
9797
} else {
9898
ignore.denies.push(pattern);
9999
}
100-
} catch (err) {
100+
} catch {
101101
log.error(`Parsing ${name} file. Error at line ${i + 1}`);
102102
}
103103
}

Diff for: src/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@
7979
"default": true
8080
}
8181
}
82-
}
82+
}

Diff for: src/utilities/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ITypeInfo, semver, stringType } from "../../deps.ts";
1+
import { ITypeInfo, semver } from "../../deps.ts";
22

33
export const releases = [
44
"patch",

Diff for: src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = "0.3.5";
1+
export const version = "0.3.6";

0 commit comments

Comments
 (0)