Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Partial string support in names of objects #6

Open
everetteallen opened this issue Jun 3, 2015 · 1 comment
Open

Partial string support in names of objects #6

everetteallen opened this issue Jun 3, 2015 · 1 comment

Comments

@everetteallen
Copy link

So would be nice to be able to use syntax like
jss_helper installs skype and get a list of policies and configurations that install any package with the substring "skype" (not case sensitive). Also true for joss_helper packages skype where would return list of all packages containing that substring

@sheagcraig
Copy link
Collaborator

I've been thinking about this recently, as I need the ability to glob-add/remove computers from a group.
e.g. something like jss_helper group US822 --remove 'US822-*'

Some of this functionality is already possible by just grepping:
jss_helper packages | grep -i skype`

I had resisted adding this kind of feature due to the standard procedure of piping to grep handling a lot of things. But adding globbing as per my needs above is one thing that couldn't be done that way.

jss_helper installs --search skype or some similar incantation would be another.

Ideally, one generalized search function would handle all of these possibilities, and indeed, that's what I had been planning!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants