Page MenuHomeDevCentral

Check shell command receives enough arguments
ClosedPublic

Authored by dereckson on Mar 25 2018, 14:03.
Tags
None
Referenced Files
F8006531: D1496.diff
Tue, May 6, 15:11
F8002838: D1496.id3826.diff
Tue, May 6, 13:56
F7978576: D1496.diff
Tue, May 6, 04:57
Unknown Object (File)
Mon, May 5, 10:34
Unknown Object (File)
Sun, May 4, 06:30
Unknown Object (File)
Sat, May 3, 19:46
Unknown Object (File)
Sat, May 3, 19:41
Unknown Object (File)
Sat, May 3, 06:15
Subscribers
None

Details

Summary

shell allows handlers with an arbitray number of required arguments.

This change handles the case where such an argument is missing.

Test Plan
~/.shell.yml
handlers:
  tools:
    server: "dev.tools.wmflabs.org"
    command: ['become', '{{%s}}']
    interactive: True
$ shell tools
shell: Required argument is missing.
$ shell tools translate
tools.translate@tools-bastion-02:~$ 

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
feature/shell (branched from master)
Build Status
Buildable 2354
Build 2602: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Mar 25 2018, 14:04
This revision was automatically updated to reflect the committed changes.