@michelangelo-devs/oak-cli
v0.9.9
Published
Oak CLI, a tool for your codebase <3
Readme
Oak CLI
Oak is a configurable Node CLI application that helps you build CLI commands based on your project configuration (tree).
NOTE: This package requires at least node 18.18
Getting Started
To get started with Oak, you'll need to initialize the configuration file using the init command.
Installation
sudo npm i -g @michelangelo-devs/oak-cliThis will let you use the oak command. note that anytime you're gonna to make a npm i you need to make another npm link.
Initialize Configuration File
Run the following command to create a new oak.config.js file in your current working directory:
oak initWhat to Expect
After running the init command, you should see a new oak.config.js file in your current working directory. This file contains the default configuration settings for Oak.
Verify the Installation
To verify that Oak has been installed correctly, run the following command:
oak vThis should display the version of Oak that you just installed + the packages.
Commands
Init
Initializes the Oak configuration file.
oak initVersion
Shows the Oak version and some extra information.
oak vHelp
Shows the available commands.
oak helpValidate
Validates the oak.config.js file.
oak validateArguments
--doc (-d)
Opens the documentation of a specific topic.
oak --doc <topic>--endless (-e)
Runs Oak endlessly until the user stops it.
oak --endlessPrompts
Oak uses the following prompts to provide feedback to the user:
- Error:
ERROR!(color:#E07A5F) - Success:
DONE!(color:#81B29A) - Warning:
WARNING!(color:#F2CC8F) - Info:
INFO!(color:#81B5D9) - Info2:
INFO!(color:#C087BD) - Validation:
OAK CONFIG VALIDATION
Documentation
You can access the Oak documentation using the --doc argument. Currently, the following topics are available:
License
Oak is licensed under the MIT License.
Contributing
Contributions are welcome! Please open an issue or submit a pull request to contribute to Oak.
Issues
If you encounter any issues or have questions, please open an issue on GitHub.
Changelog
See the CHANGELOG for a list of changes.
Code of Conduct
Oak adheres to the Contributor Covenant Code of Conduct.
Contact
If you have any questions or need help, please contact us at [email protected].
