From d7fbcb3d419cf5ad976760867732f07c46d76949 Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sun, 7 Jan 2024 15:39:08 +0900 Subject: [PATCH] fix: typos --- lib/mihari/commands/alert.rb | 2 +- lib/mihari/commands/artifact.rb | 2 +- lib/mihari/commands/rule.rb | 6 +++--- lib/mihari/commands/tag.rb | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mihari/commands/alert.rb b/lib/mihari/commands/alert.rb index e9cf66e7..ba91692e 100644 --- a/lib/mihari/commands/alert.rb +++ b/lib/mihari/commands/alert.rb @@ -67,7 +67,7 @@ def list(q = "") desc "list-transform QUERY", "List/search alerts with transformation" around :with_db_connection method_option :template, type: :string, required: true, aliases: "-t", - description: "Jbuilder template itself or a path to a template file" + desc: "Jbuilder template stringor a path to a template" method_option :page, type: :numeric, default: 1 method_option :limit, type: :numeric, default: 10 # diff --git a/lib/mihari/commands/artifact.rb b/lib/mihari/commands/artifact.rb index bd1ac511..7e2b2e08 100644 --- a/lib/mihari/commands/artifact.rb +++ b/lib/mihari/commands/artifact.rb @@ -46,7 +46,7 @@ def list(q = "") desc "list-transform QUERY", "List/search artifacts with transformation" around :with_db_connection method_option :template, type: :string, required: true, aliases: "-t", - description: "Jbuilder template itself or a path to a template file" + desc: "Jbuilder template stringor a path to a template" method_option :page, type: :numeric, default: 1 method_option :limit, type: :numeric, default: 10 # diff --git a/lib/mihari/commands/rule.rb b/lib/mihari/commands/rule.rb index 7e47a6de..53bcb12f 100644 --- a/lib/mihari/commands/rule.rb +++ b/lib/mihari/commands/rule.rb @@ -26,7 +26,7 @@ def _search(q, page: 1, limit: 10) end end - desc "validate PATH", "Validate a rule file" + desc "validate PATH", "Validate a rule" # # Validate format of a rule # @@ -37,7 +37,7 @@ def validate(path) puts rule.data.to_yaml end - desc "init PATH", "Initialize a new rule file" + desc "init PATH", "Initialize a new rule" # # Initialize a new rule file # @@ -71,7 +71,7 @@ def list(q = "") desc "list-transform QUERY", "List/search rules with transformation" around :with_db_connection method_option :template, type: :string, required: true, aliases: "-t", - description: "Jbuilder template itself or a path to a template file" + desc: "Jbuilder template stringor a path to a template" method_option :page, type: :numeric, default: 1 method_option :limit, type: :numeric, default: 10 # diff --git a/lib/mihari/commands/tag.rb b/lib/mihari/commands/tag.rb index 0b488781..414f3031 100644 --- a/lib/mihari/commands/tag.rb +++ b/lib/mihari/commands/tag.rb @@ -46,7 +46,7 @@ def list(q = "") desc "list-transform QUERY", "List/search tags with transformation" around :with_db_connection method_option :template, type: :string, required: true, aliases: "-t", - description: "Jbuilder template itself or a path to a template file" + desc: "Jbuilder template stringor a path to a template" method_option :page, type: :numeric, default: 1 method_option :limit, type: :numeric, default: 10 #