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

display external services path (contribs/flows/repo-templates) and be able to restore default values #163

Open
clarsonneur opened this issue May 24, 2018 · 0 comments

Comments

@clarsonneur
Copy link
Collaborator

User story

When we set manually a value for contribs, flows or repo-templates, this information is saved in the workspace, so that we do not need to set it again, next time.

But we forgot that and we became surprised when we do not set it to not be back to what defaults is.

We have 2 options:

  • Ensure that if no cli or env variables are set, we restore to default systematically.
  • We display the configuration everytime, so that we are aware and if we want to restore to default, we actively define it, with default value.

The 1st option is the more standard one.

The 2nd usually is managed by setting up the change with specific instructions.
like forjj setup repo-templates ... which globally manage the workspace config file. (forjj.json)
As today, this is not the case, that makes the confusion.

I propose to have an intermediate. When we create the forge, (forjj create) from a Forjfile template, we save the local-settings as defined in the forjj.json.
But when we set the cli or env variables, those values are by default choosen, and we restore it back to what was saved in the workspace or to the default if nothing was saved.

And later, we create the forjj setup or forjj worskspace command to update or even edit the workspace file.

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

No branches or pull requests

1 participant