GithubHelp home page GithubHelp logo

hitesh22rana / sourcecollector Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 25.24 MB

A simple tool to consolidate multiple files into a single .txt file. Perfect for feeding your files to AI tools without any fuss.

License: MIT License

Go 99.27% Makefile 0.73%
utility ai-tools data-preparation file-processing text-processing

sourcecollector's Introduction

sourcecollector

A simple tool to consolidate multiple files into a single .txt file. Perfect for feeding your files to AI tools without any fuss.

Getting Started

Installation

You can install the sourcecollector CLI tool in two ways:

1. Using go install

go install github.com/hitesh22rana/sourcecollector@latest

This will download and install the sourcecollector binary in your $GOPATH/bin directory.

2. Running Locally

To run sourcecollector locally, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/hitesh22rana/sourcecollector.git
  2. Build and run the application using make:

    make run input=/path/to/input/directory output=/path/to/output/file.txt fast=true

    Replace /path/to/input/directory and /path/to/output/file.txt with the actual paths you want to use for input and output, respectively. Set fast=true or fast=false based on your preference.

    Alternatively, you can build and run the application manually:

    go build -o bin/sourcecollector cmd/cli/main.go
    ./bin/sourcecollector --input /path/to/input/directory --output /path/to/output/file.txt --fast

Usage

After installing or building the sourcecollector CLI tool, you can run it with the following command:

sourcecollector --input /path/to/input/directory --output /path/to/output/file.txt --fast

Replace /path/to/input/directory and /path/to/output/file.txt with the actual paths you want to use for input and output, respectively. Set --fast=true or --fast=false based on your preference.

Flags

  • --input or -i: (Required) Specifies the input directory path.
  • --output or -o: (Optional) Specifies the output file path. Defaults to output.txt.
  • --fast: (Optional) Enables faster result processing but may result in unordered data. Default is false.
  • --help or -h: Displays help for sourcecollector.

Example usage:

sourcecollector --input /path/to/input --output /path/to/output.txt --fast

License

This project is licensed under the MIT License - see the LICENSE file for details.

sourcecollector's People

Contributors

hitesh22rana avatar

Stargazers

Aniket avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.