No commit activity in last 3 years
No release in over 3 years
Thor that suggest possible commands when you make a typo.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0.3
~> 2.12.0

Runtime

~> 0.2.2
~> 0.16.0
 Project Readme

Thor::Levenshtein

Dependency Status Code Climate Build Status

Usage

To use, just add thor-levenshtein to your Gemfile and require it as follows:

require 'thor'
require 'thor/levenshtein'

class A < Thor
  desc "describe NAME", "say that someone is amazing"
  method_options :forcefully => :boolean
  def describe(name, opts)
    ret = "#{name} is amazing"
    puts opts["forcefully"] ? ret.upcase : ret
  end
  desc 'protect', 'declare loyalty to Asgard'
  def protect(name, opts)
    puts 'I live to protect Asgard.'
  end
end

Output

$> ./a.rb dscribe
Could not find task "dscribe".

Did you mean this?
        describe