-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
cli: add --config-dir common option #1598
Conversation
Ahem, config's* (now I see a bit more inside that brain of yours, replacing
This is a design consideration. Should we not call this a "homedir"? Should this "homedir" override the other one if given? If this is only for finding config files, maybe it should be called Just thinking aloud, here. I'm very much in favor of having this option; it's just, as usual, the details. 😅 |
Hm. Yeah, probably. It was called "homedir" long before I added the constant That beind said, yes, let's go for |
I mean, we can totally throw the whole "config name" thing in the trash along with the CLI redesign. Ordinarily I'd say that should wait for Sopel 8 and not add any more to 7's plate, but the time to do it would be in 7 with the CLI changes already being made… Is it useful enough to have a "list configs" function, that we want to keep the way things work now? That is, specifying a config directory and name separately? Or should we nix that and make the new CLI do |
Hmmmm yeah. I think I'm on board with that idea. However, this is heading into the "hijack a PR to talk about an issue" territory, and it's a dangerous place. |
I guess I should at least try to avoid hypocrisy, huh? Though it's relevant because if we choose to go that alternate route, this PR isn't needed and should be closed (or overwritten with that solution). 😉 |
Indeed. At the moment, to be honest, I don't have any upgrade path in mind. I wish I already knew how to migrate from Heh, I guess sometimes I can't have it all. |
d3d12ea
to
3ec64c3
Compare
@dgw changed to |
After a second thought: support for
This is exactly the kind of thing I do for other services. So, heh. You can review that, it's not a feature that will disappear when we rework the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's nothing huge here. I just made some mostly-banal English tweaks; the PR itself is nice.
I need to remember to update the migration guide with the deprecation of --list
though.
@dgw All good! Also:
|
c192d91
to
e8808e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty minor stuff, all things considered. This will be a good addition to the CLI!
e8808e2
to
f233c78
Compare
@dgw Aside from the random error (caused by a test that use an online resource), it's all good to a new review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny review is tiny. 😹
f28c906
to
ac56884
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the tests pass now, with #1686 merged. Thanks for this!
I used to left a comment like this:
But no more. Now, you can use
--config-dir <configdir>
for that. This option provides the location to look for configuration file. Note that this does not replace and must not be confused with the settings's homedir, which is used internally by Sopel once it is started.Edit: used to be
-H/--homedir <homedir>