code-to-gpt

command module
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 6 Imported by: 0

README

code-to-gpt

code-to-gpt -c parses current working directory and outputs each file to clipboard. Each file will have a comment of the file location.

For example given a directory:

├── lib
│   └── hello.go

Running the following commands

cd lib
code-to-gpt -c

Will write this to your clipboard

-------------------------------------------------------------------------------
// hello.go
package lib

import (
	"fmt"
)

fmt.Println("Hello, world!")

Installation

go install github.com/skelouse/code-to-gpt@latest

Super Diff

Note: If you have a problem run git reset

The super-diff.sh script is a utility to output all un-staged changes of a local git repository. It uses a diff on un-staged files, displaying the output in the terminal. You can easily redirect the output to a file or copy it to your clipboard.

Redirect output to a file

$ ./super-diff.sh > diff.txt

Copy output to clipboard (Linux)

$ ./super-diff.sh | xclip -selection clipboard

Copy output to clipboard (MacOS)

$ ./super-diff.sh | pbcopy

Or write it as a function in your .bashrc or .zshrc

(linux)

function super-diff() {
  ./super-diff.sh | xclip -selection clipboard
}

(MacOS)

function super-diff() {
  ./super-diff.sh | pbcopy
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL