From d879a93d090000dcb93f8868c18f7fb0cddfc5ef Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 29 Apr 2021 23:26:52 -0400 Subject: [PATCH] Add bin/imbecile and Imbecile::CLI module --- bin/imbecile | 5 +++++ lib/imbecile.rb | 8 ++------ lib/imbecile/cli.rb | 13 +++++++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100755 bin/imbecile create mode 100644 lib/imbecile/cli.rb diff --git a/bin/imbecile b/bin/imbecile new file mode 100755 index 0000000..c5d6ab8 --- /dev/null +++ b/bin/imbecile @@ -0,0 +1,5 @@ +#!/usr/bin/env ruby + +require "imbecile" + +Imbecile::CLI.run(ARGV.dup) diff --git a/lib/imbecile.rb b/lib/imbecile.rb index bf4533d..4110a7a 100644 --- a/lib/imbecile.rb +++ b/lib/imbecile.rb @@ -1,6 +1,2 @@ -require "imbecile/version" - -module Imbecile - class Error < StandardError; end - # Your code goes here... -end +require_relative "imbecile/cli" +require_relative "imbecile/version" diff --git a/lib/imbecile/cli.rb b/lib/imbecile/cli.rb new file mode 100644 index 0000000..752eaf4 --- /dev/null +++ b/lib/imbecile/cli.rb @@ -0,0 +1,13 @@ +module Imbecile + module CLI + + class << self + + def run(args) + p args + end + + end + + end +end