Bootstrap nucleus config system with default kancli settings(Later with store the sqlite db for the todos)#25
Open
tacheraSasi wants to merge 4 commits into
Open
Conversation
Included the .idea directory to the .gitignore file to prevent IDE-specific files from being tracked in the repository.
Introduced a new constant NUCLEUS_NAME in config.go to define the name of the nucleus as "kancliNuclues". This enhances code clarity and allows for easier configuration management.
Refactored the configuration handling by introducing functions to initialize config paths, check for existing configurations, and create a default configuration if none exists. This improves the setup process and ensures a smoother user experience when managing nucleus configurations.
Eliminated the loadExistingConfig function from config.go as it was a placeholder and not implemented. This cleanup enhances code clarity and reduces unnecessary complexity in the configuration management process.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces the foundational
nucleusconfiguration system forkancli. The goal is to create a centralized, extensible base for storing CLI state and user preferences.Specifically, this update:
~/.kancli-nucleuskancli.json) if it doesn't already existKancliConfigstruct for structured configuration managementThe module is named
nucleusto reflect its role as the core of the app's persistent state and to keep things a little fun and thematic 😄.Related issue/discussion:
#2