Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list of templates #400

Open
davidB opened this issue Jun 6, 2021 · 0 comments
Open

list of templates #400

davidB opened this issue Jun 6, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@davidB
Copy link
Member

davidB commented Jun 6, 2021

As a project creator
I want to have a list of available templates
So that I could find available templates, and may be apply them simpler

demo:

ffizer list
alias\tflags
  • alias is the name to provide to the ffizer apply -t, alias are NOT unique
  • flags is the flags to provide to ffizer apply to use this template
  • default output is a tsv
  • the output is listed in LRU, then alphabetically
  • the final list remove duplicate

The content of the list comes from a local configuration (eg $HOME/.config/ffizer/templates.yaml)
Content of templates.yaml

  • could be edited manually
  • is enriched automatically when using ffizer apply -s ... with an unlisted template, the alias is defaulted by by removing https://hostname/ or git@hostname: from source, for local template "just" the "filename" of the folder.

the format of templates.yam could be something like

templates:
- alias: ...
  source: ...
  ref: ...
  subfolder: ...
templates_list:
- $url
  • the download of entry in templates_list could be cached, recursive (avoid loop)

  • issue on download, parsing,... is a warning but should not stop the listing

  • Maybe add ffizer apply -t alias ... as a shorter version instead of -s ...

  • Maybe display a selection with the list of filtered templates when using -t alias with more than 1 found, or when no -t ... nor -s ... then display the full list in LRU, alphabetical order (the last used should be the easiest to select)

@davidB davidB added the enhancement New feature or request label Jun 6, 2021
@davidB davidB self-assigned this Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant