Page MenuHomeDevCentral

Check shell command receives enough arguments
ClosedPublic

Authored by dereckson on Mar 25 2018, 14:03.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 27, 00:37
Unknown Object (File)
Mon, Feb 17, 08:40
Unknown Object (File)
Mon, Feb 17, 08:22
Unknown Object (File)
Fri, Feb 14, 08:40
Unknown Object (File)
Wed, Feb 12, 16:19
Unknown Object (File)
Tue, Feb 11, 14:32
Unknown Object (File)
Tue, Feb 11, 14:12
Unknown Object (File)
Mon, Feb 10, 11:44
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.