little bit better manifest handling #158

Closed
opened 2021-11-20 15:20:26 +00:00 by ungleich-gitea · 3 comments

Created by: 4nd3r

right now -i accepts path to manifest, but we know where manifests are - ~/.cdist/manifests/.

since I work with lots of different manifests, following improvements to cdist would be nice:

  1. do somekind of fuzzy search from known manifests directory when -i some_manifest_name
  2. add tab combletions to get list of manifests

I don't use subdirectories in manifests, but someone maybe is, so completion should be recursive.

*Created by: 4nd3r* right now `-i` accepts path to manifest, but we know where manifests are - `~/.cdist/manifests/`. since I work with lots of different manifests, following improvements to cdist would be nice: 1. do somekind of fuzzy search from known manifests directory when `-i some_manifest_name` 2. add tab combletions to get list of manifests I don't use subdirectories in manifests, but someone maybe is, so completion should be recursive.
Author
Owner

Created by: asteven

This seems to be resolved. Please create a new issues if you think otherwise.

*Created by: asteven* This seems to be resolved. Please create a new issues if you think otherwise.
Author
Owner

Created by: 4nd3r

ok, fair enough.

i was looking at cdist-completion.bash and it looks rather simplistic, yet i couldn't figure out how to stop completion when -i is used so i could navigate to .cd<TAB>/m<TAB>/...

*Created by: 4nd3r* ok, fair enough. i was looking at `cdist-completion.bash` and it looks rather simplistic, yet i couldn't figure out how to stop completion when `-i` is used so i could navigate to `.cd<TAB>/m<TAB>/`...
Author
Owner

Created by: telmich

I agree to fancy tab completion, but not to cdist doing fuzzy search - as it implies guessing, which might be wrong. Subdirectories are actually in use by some people.

*Created by: telmich* I agree to fancy tab completion, but not to cdist doing fuzzy search - as it implies guessing, which might be wrong. Subdirectories are actually in use by some people.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ungleich-public/cdist#158
No description provided.