Skip to content

Conversation

@alevy03
Copy link
Contributor

@alevy03 alevy03 commented Sep 22, 2017

runcmds_plus_hooks can accept multiple commands process the command queue to
deal with subsequent commands loaded from scripts without requiring a command
loop. This better supports a one-off batch processing scenario.

Also fixed the insertion order of commands placed in the command queue by load
and _relative_load so that script commands are run in the expected order.

Minor tweak to setup instructions in CONTRIBUTING.md to include pyperclip in
prerequisites.

closes #224

runcmds_plus_hooks can accept multiple commands process the command queue to
 deal with subsequent commands loaded from scripts without requiring a command
 loop. This better supports a one-off batch processing scenario.

Also fixed the insertion order of commands placed in the command queue by load
and _relative_load so that script commands are run in the expected order.

Minor tweak to setup instructions in CONTRIBUTING.md to include pyperclip in
prerequisites.
@codecov
Copy link

codecov bot commented Sep 22, 2017

Codecov Report

Merging #227 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #227      +/-   ##
==========================================
+ Coverage   96.92%   96.94%   +0.01%     
==========================================
  Files           1        1              
  Lines        1204     1210       +6     
==========================================
+ Hits         1167     1173       +6     
  Misses         37       37
Impacted Files Coverage Δ
cmd2.py 96.94% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7530674...532bb1c. Read the comment docs.

Copy link
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Everything looks good to me.

```bash
# Install cmd2 prerequisites
pip install -U six pyparsing
pip install -U six pyparsing pyperclip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! I forgot to update this after adding a dependency on pyperclip

@tleonhardt
Copy link
Member

@alevy03 I forced a merge of the latest stuff from master into this PR. Once all of the unit tests pass, I will merge this PR in.

@tleonhardt tleonhardt merged commit b49ec49 into python-cmd2:master Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

load no longer works when used inside onecmd_plus_hooks

2 participants