Skip to content

Allow user aliases as viable inputs to --user argument #46

@matthewfeickert

Description

@matthewfeickert

It would be nice if for commands like pandamon it was possible to give user name aliases (e.g. dguest or feickert) as valid inputs to the --user option. For example,

$ pandamon user.dguest --days 100

gives output and it would be nice if

$ pandamon --user dguest --days 100

gave the same output (it currently gives no results).

Currently though we see that the only allowed inputs for --user are

$ python -m pip show pandamonium | grep Version
Version: 0.2.1
$ pandamon --help
usage: pandamon [-h] [-u USER] [-d DAYS] [-s [STREAM] | -g] [-c]
                [--force-color] [-t] [-b] [-j] [-m] [-i FILT [FILT ...]]
                [-r RNGE] [-a] [-f]
                [taskname]

Script to retreve datasets (input or output) in submitted jobs

With a specified search string, will search for datasets with that
name. If the name doesn't end in `*` or `/`, append a wildcard.
if the string is '-', the datasets are read from stdin.

The user name can be specified via environment variable to reduce
clutter.

positional arguments:
  taskname              initial search string

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  full user name, or blank for all (please set
                        GRID_USER_NAME environment variable) Note that this
                        should be your full name, i.e. "Daniel Joseph Antrim"

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions