gitmoji-cli
Advanced tools
Comparing version 8.3.1 to 8.4.0
@@ -7,3 +7,2 @@ #!/usr/bin/env node | ||
import findGitmojiCommand from "./utils/findGitmojiCommand.js"; | ||
import commands from "./commands/index.js"; | ||
const packageJson = readFileSync(new URL('../package.json', import.meta.url)).toString(); | ||
@@ -82,11 +81,11 @@ updateNotifier({ | ||
export const options = { | ||
[FLAGS.COMMIT]: options => commands.commit(options), | ||
[FLAGS.CONFIG]: () => commands.config(), | ||
[FLAGS.HOOK]: options => commands.commit(options), | ||
[FLAGS.INIT]: () => commands.createHook(), | ||
[FLAGS.LIST]: () => commands.list(), | ||
[FLAGS.REMOVE]: () => commands.removeHook(), | ||
[FLAGS.SEARCH]: options => commands.search(options), | ||
[FLAGS.UPDATE]: () => commands.update() | ||
[FLAGS.COMMIT]: async options => await (await import("./commands/commit/index.js")).default(options), | ||
[FLAGS.CONFIG]: async () => await (await import("./commands/config/index.js")).default(), | ||
[FLAGS.HOOK]: async options => await (await import("./commands/commit/index.js")).default(options), | ||
[FLAGS.INIT]: async () => await (await import("./commands/hook/index.js")).default.create(), | ||
[FLAGS.LIST]: async () => await (await import("./commands/list/index.js")).default(), | ||
[FLAGS.REMOVE]: async () => await (await import("./commands/hook/index.js")).default.remove(), | ||
[FLAGS.SEARCH]: async options => await (await import("./commands/search/index.js")).default(options), | ||
[FLAGS.UPDATE]: async () => await (await import("./commands/update/index.js")).default() | ||
}; | ||
findGitmojiCommand(cli, options); |
{ | ||
"name": "gitmoji-cli", | ||
"version": "8.3.1", | ||
"version": "8.4.0", | ||
"type": "module", | ||
@@ -76,6 +76,6 @@ "description": "A gitmoji client for using emojis on commit messages.", | ||
"codecov": "3.8.3", | ||
"eslint": "8.42.0", | ||
"eslint": "8.43.0", | ||
"eslint-plugin-ft-flow": "2.0.3", | ||
"eslint-plugin-immutable": "1.0.0", | ||
"flow-bin": "^0.208.0", | ||
"flow-bin": "^0.209.0", | ||
"hermes-eslint": "0.12.1", | ||
@@ -82,0 +82,0 @@ "husky": "8.0.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35949
719