Git Product home page Git Product logo

frankly's People

Contributors

bootcoder avatar dillonbarevalo avatar kenrett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

frankly's Issues

Add standard command line arguments to CLI

This issue is to suggest adding the two standard command line arguments to the frankly CLI.

-h/--help = Help: Give usage message and exit.
-v/--version = Version: Show program version and exit.

(source)

Additional arguments may be considered in the future.

Can't run frankly with `.` as directory argument

Executing frankly XYZ will create a new directory called XYZ and install all project components inside XYZ. If a user creates a new directory, ABC, then runs frankly ABC, frankly will properly install components inside ABC.

If a user creates a new directory DEF, enters DEF (cd DEF) and runs frankly with the current directory or the parent directory as an argument, the command fails

e.g.
frankly . yields

/Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:230:in `mkdir': Permission denied @ dir_s_mkdir - /app (Errno::EACCES)
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:230:in `fu_mkdir'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:208:in `block (2 levels) in mkdir_p'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:206:in `reverse_each'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:206:in `block in mkdir_p'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:191:in `each'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/2.4.0/fileutils.rb:191:in `mkdir_p'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/actions/empty_directory.rb:51:in `block in invoke!'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/actions/empty_directory.rb:50:in `invoke!'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/actions.rb:95:in `action'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/actions/empty_directory.rb:14:in `empty_directory'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/frankly-0.1.5/lib/frankly/cli.rb:22:in `create_app_scaffold'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `block in invoke_all'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `each'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `map'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `invoke_all'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/group.rb:232:in `dispatch'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
  from /Users/pongo/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/frankly-0.1.5/bin/frankly:8:in `<top (required)>'
  from /Users/pongo/.rbenv/versions/2.4.2/bin/frankly:23:in `load'
  from /Users/pongo/.rbenv/versions/2.4.2/bin/frankly:23:in `<main>'

Similar call stacks are generated with frankly ..

(note, the reason this issue is being submitted is to propose moving frankly's behavior more in line with both Rails and other command line utilities)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.