Sha256: 82982f0161ee5951036e564d139eb38056dd442847379ed0a7ab4b43da00b6c4

Contents?: true

Size: 622 Bytes

Versions: 9

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

# CLI#readme
class CLI < Thor
  map ['--readme'] => 'readme'
  option :lang, type: :string
  desc 'readme DIRECTORY',
       'Create README.md file from challenge contents'
  long_desc <<-LONGDESC

  (1) teuton readme foo
  , Create README.md from foo/start.rb.

  (2) teuton readme foo/demo.rb
  , Create README.md from foo/demo.rb.

  By default lang=es, but It's available lang=en too.

  LONGDESC
  ##
  # Create README from teuton test
  # @param path_to_rb_file [String] Route to main rb Teuton file
  def readme(path_to_rb_file)
    Project.readme(path_to_rb_file, options)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
teuton-2.1.11 lib/teuton/cli/readme.rb
teuton-2.1.10 lib/teuton/cli/readme.rb
teuton-2.1.9 lib/teuton/cli/readme.rb
teuton-2.1.8 lib/teuton/cli/readme.rb
teuton-2.1.8dev1 lib/teuton/cli/readme.rb
teuton-2.1.7 lib/teuton/cli/readme.rb
teuton-2.1.6 lib/teuton/cli/readme.rb
teuton-2.1.5dev lib/teuton/cli/readme.rb
teuton-2.1.4 lib/teuton/cli/readme.rb