Skip to content

show parameter only to admins #805

Description

@muzzol

I have some scripts with functions reserved for specific users/admins.

I would like to have a conditional way to show a parameter like "show_if_admin" or "show_if_group=operators".

"parameters": [
	{
		"name": "param1",
		"param": "-a"
	},
	{
		"name": "param2",
		"param": "-b"
		"show_if_admin"
	}
]

or with specific group

"parameters": [
	{
		"name": "param1",
		"param": "-a"
	},
	{
		"name": "param2",
		"param": "-b"
		"show_if_group": "operators"
	}
]

right now my solution is to duplicate runners and the list is already huge.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions