Developed using OpenAI's GPT language model APIs
Automatically Document Programming Files and Scripts with BimBus. BimBus is a sleek and powerful command line tool crafted with Node.js and fueled by OpenAI's cutting-edge technology. Effortlessly generate thorough and comprehensive documentation for your code files. Works for all file types and projects.
- Node.js (v16 or higher)
- npm (v8 or higher)
$ git clone https://github.com/bitgangstudio/bimbus-cli.git
$ cd bimbus-cli
$ npm install
$ npm run build
To use BimBus AI, you will need to create an account with OpenAI to generate an API key. The steps below outline this setup process:
- Go to the OpenAI website.
- Click the "Sign up for free" button.
- Fill out the registration form with your information and agree to the terms of service.
- Once logged in, click on the "API" tab.
- Follow the instructions to create a new API key.
- Copy the API key and keep it in a secure place.
To generate documentation using BimBus, run the following command:
$ node dist/index.js -t <openai_access_token> \
-i <input_file_path> \
-m <model> \
[-o <output_file_directory>] \
[-f <filetype>] \
[-v] [-k] [-h]
The command accepts the following arguments:
-t
or--token
: Specifies the OpenAI Access Token.-i
or--input
: Specifies the path to the input file containing code to generate documentation for.-m
or--model
: Open AI Model used to process documentation. Accepts gpt-3.5-turbo or gpt-4. Default model is gpt-3.5-turbo.-o
or--output
(optional): Specifies the output directory where the generated documentation will be saved. If not provided, the documentation will be saved in the current working directory.-f
or--filetype
(optional): Specifies the output file type for the generated documentation (default: markdown). Can be 'markdown' or 'html'-k
or--keep
(optional): Specifies if we should keep the meta/processing files being used as part of documentation generation process.-v
or--verbose
(optional): Enables verbose output for detailed information (default: false).-h
or--help
: Displays the help message for BimBus.
The following are some examples on how to run BimBus.
Basic usage:
$ node dist/index.js -t <OpenAI Access Token> -i path/to/file.js
Specifying an output directory:
$ node dist/index.js -t <OpenAI Access Token> -i path/to/file.py -o output/docs/
Customizing the output file type:
$ node dist/index.js -t <OpenAI Access Token> -i path/to/file.ts -f html
Enabling verbose output:
$ node dist/index.js -t <OpenAI Access Token> -i path/to/file.py -v
Displaying help message:
$ node dist/index.js --help
We welcome contributions and feedback! If you encounter any issues or have suggestions for improvements, please submit them in the Issue Tracker. Pull requests are also welcome.
BimBus is released under the MIT License.
๐ฉโ๐ป Happy documenting with BimBus!