Skip to content

CLI tool that converges all files in a package into a single file for easy sharing with other engineers and tools like ChatGPT.

License

Notifications You must be signed in to change notification settings

DannyHinshaw/converge

Repository files navigation

Build Lint Test

Converge

Converge is a CLI tool designed for merging multiple Go source files into a single file. It provides a streamlined approach for consolidating Go package structures, simplifying code sharing, and other scenarios where amalgamating Go files is beneficial.

Features

  • Efficiently merges multiple Go source files from a specified directory into a single consolidated file.
  • Allows exclusion of specific files from the merging process.
  • Supports an optional timeout setting for the merge operation.

Installation

To install Converge, ensure Go is installed on your machine.

which go

You can install Converge using the following command:

go install github.com/dannyhinshaw/converge

Usage

Reference the help command for detailed usage instructions:

converge --help

Example

To merge all Go files in the 'src' directory into 'merged.go':

converge --dir=./src --output=./merged.go

To merge all Go files in the 'src' directory and pipe to clipboard:

converge --dir=./src | pbcopy

License

Converge is licensed under the MIT License.

About

CLI tool that converges all files in a package into a single file for easy sharing with other engineers and tools like ChatGPT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published