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

Updating akr setup to create config directories when needed. #152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gromer
Copy link

@gromer gromer commented Feb 4, 2025

This pull request includes updates to the crates/kr/src/launch.rs and crates/kr/src/setup.rs files to improve error handling and directory management. The most important changes include adding checks and creating directories if they don't exist, and updating imports for better file handling.

Error handling and directory management improvements:

  • crates/kr/src/launch.rs: Added a check to create the launch_agents_directory if it doesn't exist, and return an error if it cannot be created.
  • crates/kr/src/setup.rs: Added logic to create the .ssh directory and the SSH config file if they don't exist, and handle errors appropriately. If a custom config path is passed in, no directory is created. [1] [2]

Code cleanup:

Fixes #151
I integrated some of the code from PR #11 in this PR (changes to crates/kr/src/launch.rs)

@jameswald jameswald requested a review from nikhilty February 14, 2025 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Bug: File IO errors when running setup on new macOS install
1 participant