kenrett / frankly Goto Github PK
View Code? Open in Web Editor NEWSetup a sinatra skeleton like a boss!
License: MIT License
Setup a sinatra skeleton like a boss!
License: MIT License
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.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.