FlowPair is a command-line interface tool that leverages CI&T Flow AI to enhance software development processes.
FlowPair is a powerful command-line tool designed to enhance your software development workflow. By integrating CI&T's Flow AI, FlowPair provides intelligent assistance for various development tasks, including:
- Automated code reviews
- Unit test generation
- AI-powered feedback on code changes
With FlowPair, developers can:
- Improve code quality through AI-assisted reviews
- Save time on routine tasks like unit test creation
- Receive instant, actionable feedback on their work
- Streamline the development process with easy-to-use commands
Whether you're working on a small project or a large-scale application, FlowPair offers the tools you need to develop more efficiently and maintain high code standards.
-
Download the latest version of FlowPair from the releases page.
-
Extract the downloaded archive to a directory of your choice.
-
Add the FlowPair directory to your system's PATH.
-
Open a terminal and run the following command to verify the installation:
flowpair --version
To configure FlowPair, run:
flowpair configure
You will be prompted to provide the following information:
- Tenant
- Client ID
- Client Secret
These credentials are necessary for authenticating with the CI&T Flow AI service.
To review your Git changes and receive feedback, use the review
command:
flowpair review [path] [options]
Arguments:
[path]
: Optional. Path to the repository. If not specified, the current directory is used.
Options:
-c
or--commit
: Optional. Specify a commit hash to review changes from that specific commit.
Examples:
-
Review changes in the current directory:
flowpair review
-
Review changes in a specific repository:
flowpair review /path/to/your/repo
-
Review changes from a specific commit:
flowpair review -c abc123
This command will:
- Detect Git changes in the specified repository (or current directory)
- Send the changes to CI&T Flow AI for review
- Generate an HTML file with the feedback
- Automatically open the HTML report in your default web browser
To create a unit test for a specific code file, use the unittest create
command:
flowpair unittest create -f <file-path> [-e <example-file-path>]
Options:
-f
or--file-path
: The file path of the code to test (Required)-e
or--example-file-path
: The example unit test file path (Optional)
This command will generate a unit test for the specified code file, optionally using an example unit test file as a reference.
To update an existing unit test with code changes, use the unittest update
command:
flowpair unittest update [options]
Options:
-s
or--source-file
: The file path of the code to test (Required)-t
or--test-file
: The file path of the existing unit tests (Required)
This command will update the existing unit test file to reflect changes made in the source code file.
We welcome contributions to FlowPair! If you have suggestions for improvements or encounter any issues, please feel free to:
- Open an issue
- Submit a pull request
Before contributing, please read our contribution guidelines.
If you need help, have any questions, or want to report issues:
- Use our GitHub Issues page to report problems or seek assistance
FlowPair is licensed under the GNU GPLv3.