Add support for multi-line and root commands when using commandline. #107

Merged
merged 1 commit into from Aug 9, 2011

Conversation

Projects
None yet
2 participants
@mudge
Contributor

mudge commented Aug 3, 2011

When using the "commandline" slide style, you can now start commands
with either $ or # and split commands over multiple lines by using a
back slash.

e.g.

# some root command
some output
$ some really long \
  command over several \
  lines
some output
that goes over
several lines
$ some command \( with back slashes \)
output

Please note that this adds the Parslet library as a dependency so that commandline slides can be parsed in a robust fashion (rather than using a naïve regular expression).

Due to the way the ShowOff gemspec requires './lib/showoff', you will need to manually run "gem install parslet" to try out the new behaviour. (I'm planning to extract ShowOff::VERSION into a separate file in a separate commit to alleviate this issue.)

Add support for multi-line and root commands when using commandline.
When using the "commandline" slide style, you can now start commands
with either $ or # and split commands over multiple lines by using a
back slash.

e.g.

    # some root command
    some output
    $ some really long \
      command over several \
      lines
    some output
    that goes over
    several lines
    $ some command \( with back slashes \)
    output
    with a

    gap

schacon added a commit that referenced this pull request Aug 9, 2011

Merge pull request #107 from mudge/showoff
---

When using the "commandline" slide style, you can now start commands
with either $ or # and split commands over multiple lines by using a
back slash.

e.g.

    # some root command
    some output
    $ some really long \
      command over several \
      lines
    some output
    that goes over
    several lines
    $ some command \( with back slashes \)
    output

Please note that this adds the Parslet library as a dependency so that commandline slides can be parsed in a robust fashion (rather than using a naïve regular expression).

Due to the way the ShowOff gemspec requires ./lib/showoff, you will need to manually run "gem install parslet" to try out the new behaviour. (Im planning to extract ShowOff::VERSION into a separate file in a separate commit to alleviate this issue.)

Conflicts:
	showoff.gemspec

@schacon schacon merged commit e7c25db into schacon:master Aug 9, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment