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

Add indent method to Thor::Shell::Basic #447

Merged
merged 2 commits into from Jan 20, 2015
Merged

Add indent method to Thor::Shell::Basic #447

merged 2 commits into from Jan 20, 2015

Conversation

rzane
Copy link
Contributor

@rzane rzane commented Oct 15, 2014

Example:

say "Hello!"
indent do
  say "I'm indented 2 spaces!"
  indent do
    say "I'm indented 4 spaces!"
    indent(2) { say "I'm indented 8 spaces!"  }
  end
end
say "I'm not indented anymore!"

Output:

Hello!
  I'm indented 2 spaces!
    I'm indented 4 spaces!
        I'm indented 8 spaces!
I'm not indented anymore!

@sferik
Copy link
Contributor

sferik commented Jan 20, 2015

Thanks!

sferik added a commit that referenced this pull request Jan 20, 2015
Add indent method to Thor::Shell::Basic
@sferik sferik merged commit 0399bcf into rails:master Jan 20, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants