- Purpose: Serves as the main entry point for the application.
- Logic:
- Parses command-line arguments to determine the command (
pull
orpush
). - Initializes the file system and configuration management.
- Calls the appropriate handler function (
handlePull
orhandlePush
) based on the command.
- Parses command-line arguments to determine the command (
- Purpose: Handles the retrieval and updating of configuration values.
- Logic:
- Defines the
pull
function to fetch updated configurations. - Updates the configuration file with new values.
- Defines the
- Purpose: Handles writing configuration values.
- Logic:
- Defines the
push
function to send configuration data. - Interacts with external systems or services to push configurations.
- Defines the
- Purpose: Manages configuration file operations.
- Logic:
- Defines structures for configuration data.
- Provides functions to read and write configuration files.
- Ensures the configuration file exists and is properly formatted.
- Purpose: Manages file system interactions.
- Logic:
- Provides functions to read from and write to files.
- Handles file creation and existence checks.
- Purpose: Defines and processes command-line commands.
- Logic:
- Maps command-line inputs to specific functions.
- Provides usage instructions and error messages for invalid commands.