Skip to content

Commit

Permalink
Merge pull request #121 from nestdotland/dev
Browse files Browse the repository at this point in the history
0.3.6
  • Loading branch information
SteelAlloy authored Apr 17, 2021
2 parents f5fac66 + 0218398 commit b971caa
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 57 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
**Note: You need to upgrade to Deno v1.6.0 or newer in order to use our CLI.**

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

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

Scripts installed with `eggs install` can also be updated with the `-g`
parameter.

```shell script
eggs update -g # Updates every script installed with eggs install
eggs update eggs denon -g # Updates only eggs, denon
```

Several registries are supported. The current ones are:

- x.nest.land
Expand Down
24 changes: 12 additions & 12 deletions benchmarks/commands/update/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ export {
bench,
runBenchmarks,
} from "https://x.nest.land/[email protected]/testing/bench.ts";
import * as archive from "https://x.nest.land/[email protected]/archive/tar.ts";
import * as denoSync from "https://x.nest.land/[email protected]/async/mod.ts";
import * as bytes from "https://x.nest.land/[email protected]/bytes/mod.ts";
import * as dateTime from "https://x.nest.land/[email protected]/datetime/mod.ts";
import * as colors from "https://x.nest.land/[email protected]/fmt/colors.ts";
import * as sha512 from "https://x.nest.land/[email protected]/hash/sha512.ts";
import * as http from "https://x.nest.land/[email protected]/http/mod.ts";
import * as io from "https://x.nest.land/[email protected]/io/mod.ts";
import * as log from "https://x.nest.land/[email protected]/log/mod.ts";
import * as _archive from "https://x.nest.land/[email protected]/archive/tar.ts";
import * as _denoSync from "https://x.nest.land/[email protected]/async/mod.ts";
import * as _bytes from "https://x.nest.land/[email protected]/bytes/mod.ts";
import * as _dateTime from "https://x.nest.land/[email protected]/datetime/mod.ts";
import * as _colors from "https://x.nest.land/[email protected]/fmt/colors.ts";
import * as _sha512 from "https://x.nest.land/[email protected]/hash/sha512.ts";
import * as _http from "https://x.nest.land/[email protected]/http/mod.ts";
import * as _io from "https://x.nest.land/[email protected]/io/mod.ts";
import * as _log from "https://x.nest.land/[email protected]/log/mod.ts";

// deno land 3rd party
import * as dmm from "https://deno.land/x/[email protected]/mod.ts";
import * as drash from "https://deno.land/x/[email protected]/mod.ts";
import * as bcrypt from "https://deno.land/x/[email protected]/mod.ts";
import * as _dmm from "https://deno.land/x/[email protected]/mod.ts";
import * as _drash from "https://deno.land/x/[email protected]/mod.ts";
import * as _bcrypt from "https://deno.land/x/[email protected]/mod.ts";
30 changes: 15 additions & 15 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,56 @@ export {
join,
relative,
resolve,
} from "https://x.nest.land/std@0.80.0/path/mod.ts";
} from "https://x.nest.land/std@0.93.0/path/mod.ts";

export {
exists,
existsSync,
expandGlob,
expandGlobSync,
walkSync,
} from "https://x.nest.land/std@0.80.0/fs/mod.ts";
} from "https://x.nest.land/std@0.93.0/fs/mod.ts";

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

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

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

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

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

export {
assert,
assertEquals,
assertMatch,
} from "https://x.nest.land/std@0.80.0/testing/asserts.ts";
} from "https://x.nest.land/std@0.93.0/testing/asserts.ts";

export {
parse as parseYaml,
stringify as stringifyYaml,
} from "https://x.nest.land/std@0.80.0/encoding/yaml.ts";
} from "https://x.nest.land/std@0.93.0/encoding/yaml.ts";

/**************** cliffy ****************/
export {
Command,
CompletionsCommand,
HelpCommand,
} from "https://x.nest.land/cliffy@0.16.0/command/mod.ts";
} from "https://x.nest.land/cliffy@0.18.2/command/mod.ts";

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

export {
Checkbox,
Confirm,
Input,
List,
Select,
} from "https://x.nest.land/cliffy@0.16.0/prompt/mod.ts";
} from "https://x.nest.land/cliffy@0.18.2/prompt/mod.ts";

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

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

/**************** wait ****************/
export { Spinner, wait } from "https://deno.land/x/[email protected].7/mod.ts";
export { Spinner, wait } from "https://deno.land/x/[email protected].10/mod.ts";
6 changes: 3 additions & 3 deletions eggs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const eggs = new Command<DefaultOptions, []>()
{ global: true },
)
.action(() => {
eggs.help();
eggs.showHelp();
})
.command("help", new HelpCommand())
.command("completions", new CompletionsCommand())
Expand Down Expand Up @@ -91,9 +91,9 @@ try {
) {
const command = Deno.args[0] as keyof typeof commands;
if (command in commands) {
commands[command].help();
commands[command].showHelp();
} else {
eggs.help();
eggs.showHelp();
}
log.error(err.message);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { envENDPOINT } from "../utilities/environment.ts";
export const ENDPOINT = envENDPOINT();

// TODO(@qu4k): develop mock api
let MOCK = false;
let _MOCK = false;

export function enableMockApi() {
MOCK = true;
_MOCK = true;
}

export async function apiFetch(
Expand Down
1 change: 0 additions & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
basename,
Checkbox,
Command,
Confirm,
Input,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/install.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Command, installHatcher, log } from "../../deps.ts";
import { Command, installHatcher } from "../../deps.ts";
import type { DefaultOptions } from "../commands.ts";
import { version } from "../version.ts";
import { setupLog } from "../utilities/log.ts";
Expand All @@ -11,7 +11,7 @@ export async function install(

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

Expand Down
17 changes: 8 additions & 9 deletions src/commands/publish.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import {
basename,
basename as _basename,
bold,
Command,
Confirm,
dependencyTree,
dependencyTree as _dependencyTree,
dim,
dirname,
dirname as _dirname,
existsSync,
globToRegExp,
gray,
green,
isVersionUnstable,
italic,
join,
join as _join,
log,
relative,
semver,
stringType,
yellow,
} from "../../deps.ts";
import type { DefaultOptions } from "../commands.ts";
import { releaseType, urlType, versionType } from "../utilities/types.ts";
Expand Down Expand Up @@ -95,7 +93,7 @@ function ensureFiles(config: Config, matched: MatchedFile[]): boolean {
return true;
}

async function deprecationWarnings(config: Config) {
async function deprecationWarnings(_config: Config) {
// no deprecated feature for the time being :)
}

Expand Down Expand Up @@ -204,7 +202,8 @@ async function checkUp(
}
}

if (config.checkInstallation ?? config.check) {
// Test disabled: analyzer is still unstable
/* if (config.checkInstallation ?? config.check) {
const wait = spinner.info("Test installation...");
const tempDir = await Deno.makeTempDir();
for (let i = 0; i < matched.length; i++) {
Expand Down Expand Up @@ -236,7 +235,7 @@ async function checkUp(
}
return false;
}
}
} */

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/context/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function parseIgnore(
} else {
ignore.denies.push(pattern);
}
} catch (err) {
} catch {
log.error(`Parsing ${name} file. Error at line ${i + 1}`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
"default": true
}
}
}
}
2 changes: 1 addition & 1 deletion src/utilities/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ITypeInfo, semver, stringType } from "../../deps.ts";
import { ITypeInfo, semver } from "../../deps.ts";

export const releases = [
"patch",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "0.3.5";
export const version = "0.3.6";

0 comments on commit b971caa

Please sign in to comment.