-
Notifications
You must be signed in to change notification settings - Fork 18
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
cmd: configuration rework #296
Conversation
Pull Request Test Coverage Report for Build 1123
💛 - Coveralls |
@bobheadxi so is it up to the user to add |
@chadlagore and I discussed this quite a bit way back in the day - one way would be to quietly slip in a |
I could expand the scope of this PR to include a move of sensitive information into the user's home directory, or add something that adds a |
@bobheadxi I'm more in favour of extending the task to move it to the user's home directory. Somewhere that the user can't possibly make a mistake committing the wrong file. With the names so similar: |
Current plan:
Usage patterns can look like this: $ cd /any/directory
$ inertia --project bumper my_vps up This opens the door for configuration for #311, #309, #112, #78, #194, and more A little bit of inspiration from https://up.docs.apex.sh/#configuration Thoughts, @PiggySpeed @leesw98 @brian-nguyen ? |
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.
Doesn't work 0/10
c732bcd
to
2c02a44
Compare
PlainClone() clears the target directory, removing Inertia configuration
This PR just needs some final live testing, QA, and edge case testing - I've pushed up a |
won't be merging this PR but eventually i rewrite this whole shebang using https://github.com/spf13/viper which now supports config writeback and clean up the mess of daemonside config initialization... leaving this open so i can reference it later tho Other notes for self: |
Closing this, in favour of #577 |
🎟️ Ticket(s): Closes #101, closes #350
👷 Changes
This PR splits configuration into two separate files:
inertia.toml
, which contains basic project configuration, and should be committed to source.inertia.remotes
, which contains remote configuration, and should not be committed to source.This opens the door for more project-specific configuration that can be source-controlled, as well as the ability to move configuration currently in
inertia.remotes
out of the project directory into a safer, centralized location to avoid accidental commits. For now, both will live in the user's project directory.This PR also includes some miscellaneous tests.
The following is no longer valid - see updates for moving
inertia.remotes
out of the project directory into~/.inertia/$PROJECT.remotes
: #296 (comment), #296 (comment)🔦 Testing Instructions
🍧 Example