HomeDevCentral

Check shell command receives enough arguments

Description

Check shell command receives enough arguments

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:~$

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1496

Details

Provenance
derecksonAuthored on Mar 25 2018, 13:57
derecksonPushed on Mar 25 2018, 14:04
Reviewer
dereckson
Differential Revision
D1496: Check shell command receives enough arguments
Parents
rOPS040a1dcede59: Deploy common MediaWiki extensions
Branches
Unknown
Tags
Unknown