Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linecook init cannot handle no args or '.' #10

Open
thinkerbot opened this issue May 16, 2011 · 1 comment
Open

linecook init cannot handle no args or '.' #10

thinkerbot opened this issue May 16, 2011 · 1 comment

Comments

@thinkerbot
Copy link
Contributor

Linecook init isn't smart enough to figure out it should generate in the pwd.

mkdir dir
cd dir
linecook init .
already exists: .../dir

Even worse:

linecook init
/Users/Simon/.rvm/gems/ruby-1.8.6-p399@chiangs/gems/linecook-1.1.0/lib/linecook/commands/command.rb:50:in `process': wrong number of arguments (0 for 1) (ArgumentError)
from /Users/Simon/.rvm/gems/ruby-1.8.6-p399@chiangs/gems/linecook-1.1.0/lib/linecook/commands/command.rb:50:in `call'
from /Users/Simon/.rvm/gems/ruby-1.8.6-p399@chiangs/gems/linecook-1.1.0/bin/linecook:60
from /Users/Simon/.rvm/gems/ruby-1.8.6-p399@chiangs/bin/linecook:19:in `load'
from /Users/Simon/.rvm/gems/ruby-1.8.6-p399@chiangs/bin/linecook:19
@thinkerbot
Copy link
Contributor Author

Currently difficult to fix. The init command is not a true generator - it doesn't know how to handle conflicts. At present it avoids the issue by not overwriting existing directories and providing the --force option to remove the existing directory and then go forth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant