Skip to content

Commit

Permalink
merge(cli): implement plugin not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 authored Sep 25, 2023
2 parents 73c29fa + 608db9e commit ba1131d
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 60 deletions.
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"@ipld/dag-cbor": "^9.0.2",
"@ipld/dag-pb": "^4.0.3",
"@oclif/core": "^2",
"@oclif/plugin-autocomplete": "^2.3.6",
"@oclif/plugin-help": "^5",
"@oclif/plugin-not-found": "^2.3.36",
"@oclif/plugin-plugins": "^2.4.7",
"blockstore-datastore-adapter": "^5.0.0",
"datastore-level": "^10.1.1",
Expand Down Expand Up @@ -50,13 +52,17 @@
"commands": "./dist/commands",
"plugins": [
"@oclif/plugin-help",
"@oclif/plugin-plugins"
"@oclif/plugin-plugins",
"@oclif/plugin-autocomplete",
"@oclif/plugin-not-found"
],
"topicSeparator": " ",
"topics": {
"hello": {
"description": "Say hello to the world and others"
}
"feed": { "description": "Feed related commands" },
"keyvalue": { "description": "Key value related commands" },
"eventlog": { "description": "Event log related commands" },
"counter": { "description": "Counter related commands" },
"docstore": { "description": "Document store related commands" }
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/feed/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class FeedInfo extends Command {
static description = "Show informations about a feed type database";

static examples: Command.Example[] = [
"<%= config.bin %> <%= command.id %> --name=myFeedDbName --file=myFile",
"<%= config.bin %> <%= command.id %> --name=myFeedDbName",
];

static flags = {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/feed/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { resolveDBIdByName } from "../../utils/resolve-DBIdByName";
import { saveDB } from "../../utils/save-DB";

export default class FeedList extends Command {
static description = "Show informations about a feed type database";
static description = "Show values of a feed type database";

static examples: Command.Example[] = [
"<%= config.bin %> <%= command.id %> --name=myFeedDbName --file=myFile",
"<%= config.bin %> <%= command.id %> --name=myFeedDbName --limit=10",
];

static flags = {
Expand Down
34 changes: 0 additions & 34 deletions src/commands/hello/index.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/commands/hello/world.ts

This file was deleted.

87 changes: 87 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,17 @@
supports-color "^8.1.1"
tslib "^2"

"@oclif/color@^1.0.9":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@oclif/color/-/color-1.0.10.tgz#e83e3a30fffc93076281398cbeaa4f761c4df09e"
integrity sha512-INWEDAL3SzzR3pIhkrqk22HV6JravLUeRZXAIpoQqIeLReauaibCVcNTzOlt0z0S8YrqRhksc54ZxZC4Oa8xBw==
dependencies:
ansi-styles "^4.2.1"
chalk "^4.1.0"
strip-ansi "^6.0.1"
supports-color "^8.1.1"
tslib "^2"

"@oclif/core@^1.20.3", "@oclif/core@^1.20.4":
version "1.25.0"
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.25.0.tgz#a3891f903bf211ce1f3c8a05419b686f02c5bbd6"
Expand Down Expand Up @@ -1491,18 +1502,73 @@
wordwrap "^1.0.0"
wrap-ansi "^7.0.0"

"@oclif/core@^2.11.7":
version "2.11.7"
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-2.11.7.tgz#7781a4dc65597ed9d8fda39cb1b209efca1c2d24"
integrity sha512-0jbHePVekndUTd+Wee0+pnCpRhuHJrKiG9OtMqf4JSBCxp5Q8V+ACf8QKN4gNH9ppbGORfnTIYtXWh60+DcIiw==
dependencies:
"@types/cli-progress" "^3.11.0"
ansi-escapes "^4.3.2"
ansi-styles "^4.3.0"
cardinal "^2.1.1"
chalk "^4.1.2"
clean-stack "^3.0.1"
cli-progress "^3.12.0"
debug "^4.3.4"
ejs "^3.1.8"
fs-extra "^9.1.0"
get-package-type "^0.1.0"
globby "^11.1.0"
hyperlinker "^1.0.0"
indent-string "^4.0.0"
is-wsl "^2.2.0"
js-yaml "^3.14.1"
natural-orderby "^2.0.3"
object-treeify "^1.1.33"
password-prompt "^1.1.2"
semver "^7.5.3"
slice-ansi "^4.0.0"
string-width "^4.2.3"
strip-ansi "^6.0.1"
supports-color "^8.1.1"
supports-hyperlinks "^2.2.0"
ts-node "^10.9.1"
tslib "^2.5.0"
widest-line "^3.1.0"
wordwrap "^1.0.0"
wrap-ansi "^7.0.0"

"@oclif/linewrap@^1.0.0":
version "1.0.0"
resolved "https://registry.npmjs.org/@oclif/linewrap/-/linewrap-1.0.0.tgz"
integrity sha512-Ups2dShK52xXa8w6iBWLgcjPJWjais6KPJQq3gQ/88AY6BXoTX+MIGFPrWQO1KLMiQfoTpcLnUwloN4brrVUHw==

"@oclif/plugin-autocomplete@^2.3.6":
version "2.3.6"
resolved "https://registry.yarnpkg.com/@oclif/plugin-autocomplete/-/plugin-autocomplete-2.3.6.tgz#32a52c02b360a9d8e6e767733acb34ed1c93674f"
integrity sha512-h969Vc9pzwJ87Z79PXjt67uUZm99zj8pD4zSX3pjc2xOf4ZNslLHNtvb3AjuU01mTM6FYJTsJcwjhPvXzxsqEg==
dependencies:
"@oclif/core" "^2.11.7"
chalk "^4.1.0"
debug "^4.3.4"
fs-extra "^9.0.1"

"@oclif/plugin-help@^5", "@oclif/plugin-help@^5.1.19":
version "5.2.9"
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.2.9.tgz#badbafdfe3f98ac78a5a3b79582e081d4b64c4b7"
integrity sha512-0J3oowPURZJ4Dn1p1WpQ46E4+CoV20KTn1cvsNiDl6Hmbw+qoljKQnArJJzNFeZQxWo4R7/S42PrzKJTVYh68Q==
dependencies:
"@oclif/core" "^2.8.0"

"@oclif/plugin-not-found@^2.3.36":
version "2.3.36"
resolved "https://registry.yarnpkg.com/@oclif/plugin-not-found/-/plugin-not-found-2.3.36.tgz#c274fb07f1310e636fb7059a414ae21406da53a6"
integrity sha512-YMXvSpXOo13S3gNA8+0uJR6DoRQ+Bbxs06VnFpJST39RnZy51XyIAn3PYaIo6iyGoDCg+MqL+txLmhWlRLEn+w==
dependencies:
"@oclif/color" "^1.0.9"
"@oclif/core" "^2.11.7"
fast-levenshtein "^3.0.0"

"@oclif/plugin-not-found@^2.3.7":
version "2.3.9"
resolved "https://registry.yarnpkg.com/@oclif/plugin-not-found/-/plugin-not-found-2.3.9.tgz#045277bf04c8fd6ee25e68d5355658985c21404a"
Expand Down Expand Up @@ -2311,6 +2377,11 @@ assertion-error@^1.1.0:
resolved "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz"
integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==

astral-regex@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==

async@^3.2.3:
version "3.2.4"
resolved "https://registry.yarnpkg.com/async/-/async-3.2.4.tgz#2d22e00f8cddeb5fde5dd33522b56d1cf569a81c"
Expand Down Expand Up @@ -7229,6 +7300,13 @@ semver@^7.1.1, semver@^7.1.3, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semve
dependencies:
lru-cache "^6.0.0"

semver@^7.5.3:
version "7.5.4"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
dependencies:
lru-cache "^6.0.0"

[email protected]:
version "6.0.0"
resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz"
Expand Down Expand Up @@ -7316,6 +7394,15 @@ slash@^3.0.0:
resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz"
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==

slice-ansi@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b"
integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==
dependencies:
ansi-styles "^4.0.0"
astral-regex "^2.0.0"
is-fullwidth-code-point "^3.0.0"

smart-buffer@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae"
Expand Down

0 comments on commit ba1131d

Please sign in to comment.