Page MenuHomeDevCentral

Check shell command receives enough arguments
ClosedPublic

Authored by dereckson on Mar 25 2018, 14:03.
Tags
None
Referenced Files
F7151385: D1496.diff
Mon, Apr 21, 13:26
Unknown Object (File)
Wed, Apr 16, 14:18
Unknown Object (File)
Wed, Apr 16, 14:18
Unknown Object (File)
Sun, Apr 13, 16:56
Unknown Object (File)
Sun, Apr 13, 12:30
Unknown Object (File)
Sun, Apr 13, 04:46
Unknown Object (File)
Sat, Apr 12, 08:00
Unknown Object (File)
Fri, Apr 11, 10:17
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 Not Applicable
Unit
Tests Not Applicable

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.