pronto icon indicating copy to clipboard operation
pronto copied to clipboard

Adds a --config option to pass a path to a .pronto.yml config file

Open jeroenj opened this issue 8 years ago • 8 comments

closes #226

jeroenj avatar Apr 24 '17 07:04 jeroenj

@mmozuras I'd be happy to incorporate any feedback. :)

Not very happy with passing it as an ENV variable but I saw no easy/clean way to do it otherwise.

jeroenj avatar Apr 24 '17 07:04 jeroenj

Not very happy with passing it as an ENV variable but I saw no easy/clean way to do it otherwise.

Let's try to think of alternatives before committing to passing values via ENV variables. This would require more refactoring, but maybe the whole Config class could be global, initialised only once?

mmozuras avatar Apr 26 '17 19:04 mmozuras

Let's try to think of alternatives before committing to passing values via ENV variables. This would require more refactoring, but maybe the whole Config class could be global, initialised only once?

I think that would make sese. :) 👍

jeroenj avatar Apr 27 '17 06:04 jeroenj

What was the plan with this PR? Are we going to come up with a new approach or should this be closed for the time being?

doomspork avatar Jul 15 '17 19:07 doomspork

Yes, I'm still planning on continuing to work on it but I had a lot on my plate the last few months which resulted in not enough time for this. I'm on holiday right now but I plan to pick this up again mid-August. Unless someone else picks in of course. :)

jeroenj avatar Jul 15 '17 20:07 jeroenj

Let's try to think of alternatives before committing to passing values via ENV variables. This would require more refactoring, but maybe the whole Config class could be global, initialised only once?

@mmozuras I've made the Config a singleton object to make it global. There are still some pending tests but I've pushed the (working) code. Would you mind having a look at it already?

jeroenj avatar Aug 11 '17 14:08 jeroenj

ping @jeroenj — any progress here?

doomspork avatar Jun 12 '18 21:06 doomspork

I didn't work on it anymore since then. I just (quickly) reread this. I think it would be best if @mmozuras or you gave feedback on the current implementation. Once we settle on an implementation I'll finish the tests so this can be merged. 👍

(I've been using this code in a fork since then actually.)

jeroenj avatar Jun 13 '18 07:06 jeroenj

I'm closing this since #435 was merged, please reopen and fix merge conflicts if you still think this should be merged.

ashkulz avatar Nov 02 '22 05:11 ashkulz