From 1297435dbf325f6a65eedace5a3da28d3969a5c2 Mon Sep 17 00:00:00 2001 From: chand1012 Date: Mon, 3 Jul 2023 11:24:13 -0400 Subject: [PATCH] Update package name --- Justfile | 4 ++-- README.md | 6 +++--- cmd/ask.go | 10 +++++----- cmd/chat.go | 8 ++++---- cmd/cmd.go | 8 ++++---- cmd/commit.go | 12 ++++++------ cmd/config.go | 4 ++-- cmd/count.go | 8 ++++---- cmd/docs.go | 8 ++++---- cmd/edit.go | 12 ++++++------ cmd/issue.go | 12 ++++++------ cmd/pr.go | 12 ++++++------ cmd/prompt.go | 4 ++-- cmd/release.go | 12 ++++++------ docs/gen_docs.go | 2 +- go.mod | 2 +- main.go | 2 +- pkg/ai/cmd_question.go | 6 +++--- pkg/ai/commit.go | 4 ++-- pkg/ai/markdown.go | 4 ++-- pkg/ai/pr.go | 4 ++-- pkg/ai/question.go | 6 +++--- pkg/ai/req.go | 2 +- pkg/ai/single_file.go | 6 +++--- pkg/gh/issues.go | 2 +- pkg/gh/pr.go | 2 +- pkg/gh/release.go | 2 +- pkg/history/history.go | 2 +- pkg/shell/shell.go | 2 +- pkg/textfile/split.go | 4 ++-- 30 files changed, 86 insertions(+), 86 deletions(-) diff --git a/Justfile b/Justfile index 3e178e2..d4c8a75 100644 --- a/Justfile +++ b/Justfile @@ -1,7 +1,7 @@ DATE := `date +"%Y-%m-%d_%H:%M:%S"` GIT_COMMIT := `git rev-parse HEAD` VERSION_TAG := `git describe --tags --abbrev=0` -LD_FLAGS := "-X github.com/chand1012/ottodocs/cmd.buildDate=" + DATE + " -X github.com/chand1012/ottodocs/cmd.commitHash=" + GIT_COMMIT + " -X github.com/chand1012/ottodocs/cmd.tag=" + VERSION_TAG +LD_FLAGS := "-X github.com/TimeSurgeLabs/ottodocs/cmd.buildDate=" + DATE + " -X github.com/TimeSurgeLabs/ottodocs/cmd.commitHash=" + GIT_COMMIT + " -X github.com/TimeSurgeLabs/ottodocs/cmd.tag=" + VERSION_TAG # EXEC_EXT := `[[ "$(uname -o)" == "Msys" ]] && echo ".exe"` # uncomment on windows EXEC_EXT := "" # comment out on windows @@ -42,7 +42,7 @@ crossbuild: # Set the name of the output binary and Go package BINARY_NAME="otto" - GO_PACKAGE="github.com/chand1012/ottodocs" + GO_PACKAGE="github.com/TimeSurgeLabs/ottodocs" mkdir -p dist diff --git a/README.md b/README.md index 7b6e6ab..03f15f9 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,19 @@ Ottodocs is a command-line tool built in Go that utilizes OpenAI's ChatGPT API t There are two methods to install OttoDocs: -1. **Precompiled binaries:** Download the precompiled binaries from the [GitHub releases tab](https://github.com/chand1012/ottodocs/releases). +1. **Precompiled binaries:** Download the precompiled binaries from the [GitHub releases tab](https://github.com/TimeSurgeLabs/ottodocs/releases). 2. **Build from source:** Clone the repo and build the binary by running the following commands: ### Installing Precompiled Binaries -Simply download the binary for your platform from the [GitHub releases tab](https://github.com/chand1012/ottodocs/releases) and place it in your `$PATH` . +Simply download the binary for your platform from the [GitHub releases tab](https://github.com/TimeSurgeLabs/ottodocs/releases) and place it in your `$PATH` . ### Building From Source OttoDocs utilizes the `just` command runner for building and running tasks, making maintaining the project easier. If you do not have `just` installed, see [here](https://just.systems/man/en/chapter_5.html) for installation methods. Ottodocs requires [Go 1.20+](https://go.dev/dl/) to build. ```sh -git clone https://github.com/chand1012/ottodocs.git +git clone https://github.com/TimeSurgeLabs/ottodocs.git cd ottodocs just build # will build to bin/otto # or diff --git a/cmd/ask.go b/cmd/ask.go index d5d88cd..381f9de 100644 --- a/cmd/ask.go +++ b/cmd/ask.go @@ -12,11 +12,11 @@ import ( "github.com/sashabaranov/go-openai" "github.com/spf13/cobra" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" ) // askCmd represents the ask command diff --git a/cmd/chat.go b/cmd/chat.go index 85dda3f..653c942 100644 --- a/cmd/chat.go +++ b/cmd/chat.go @@ -10,10 +10,10 @@ import ( "strconv" "strings" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/history" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/history" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" l "github.com/charmbracelet/log" "github.com/sashabaranov/go-openai" "github.com/spf13/cobra" diff --git a/cmd/cmd.go b/cmd/cmd.go index 2e49adf..ace041a 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -10,10 +10,10 @@ import ( l "github.com/charmbracelet/log" "github.com/spf13/cobra" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/shell" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/shell" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" ) // in the future this should fully wrap the shell diff --git a/cmd/commit.go b/cmd/commit.go index 229ee6f..214885f 100644 --- a/cmd/commit.go +++ b/cmd/commit.go @@ -9,12 +9,12 @@ import ( "sort" "strings" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" l "github.com/charmbracelet/log" "github.com/spf13/cobra" ) diff --git a/cmd/config.go b/cmd/config.go index c04f25c..5272efc 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -7,8 +7,8 @@ import ( "fmt" "os" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" "github.com/spf13/cobra" ) diff --git a/cmd/count.go b/cmd/count.go index dfae159..249d0c1 100644 --- a/cmd/count.go +++ b/cmd/count.go @@ -7,10 +7,10 @@ import ( "fmt" "os" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" "github.com/spf13/cobra" ) diff --git a/cmd/docs.go b/cmd/docs.go index 67d0eb0..397b0ad 100644 --- a/cmd/docs.go +++ b/cmd/docs.go @@ -8,10 +8,10 @@ import ( "os" "path/filepath" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" l "github.com/charmbracelet/log" "github.com/spf13/cobra" ) diff --git a/cmd/edit.go b/cmd/edit.go index f439d7e..c9de622 100644 --- a/cmd/edit.go +++ b/cmd/edit.go @@ -9,13 +9,13 @@ import ( "os" "strings" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/textfile" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" "github.com/chand1012/memory" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/textfile" - "github.com/chand1012/ottodocs/pkg/utils" l "github.com/charmbracelet/log" "github.com/sashabaranov/go-openai" "github.com/spf13/cobra" diff --git a/cmd/issue.go b/cmd/issue.go index dd6f124..1382492 100644 --- a/cmd/issue.go +++ b/cmd/issue.go @@ -14,12 +14,12 @@ import ( l "github.com/charmbracelet/log" "github.com/spf13/cobra" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/gh" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/gh" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" ) // issueCmd represents the issue command diff --git a/cmd/pr.go b/cmd/pr.go index cf22c4f..4f11f43 100644 --- a/cmd/pr.go +++ b/cmd/pr.go @@ -8,13 +8,13 @@ import ( "os" "strings" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/gh" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" g "github.com/chand1012/git2gpt/prompt" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/gh" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" l "github.com/charmbracelet/log" "github.com/spf13/cobra" ) diff --git a/cmd/prompt.go b/cmd/prompt.go index 5133698..b10ec00 100644 --- a/cmd/prompt.go +++ b/cmd/prompt.go @@ -7,9 +7,9 @@ import ( "fmt" "os" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" "github.com/chand1012/git2gpt/prompt" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/git" "github.com/spf13/cobra" ) diff --git a/cmd/release.go b/cmd/release.go index 1cf66de..768c748 100644 --- a/cmd/release.go +++ b/cmd/release.go @@ -8,12 +8,12 @@ import ( "os" "strings" - "github.com/chand1012/ottodocs/pkg/ai" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" - "github.com/chand1012/ottodocs/pkg/gh" - "github.com/chand1012/ottodocs/pkg/git" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/ai" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/gh" + "github.com/TimeSurgeLabs/ottodocs/pkg/git" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" l "github.com/charmbracelet/log" "github.com/spf13/cobra" ) diff --git a/docs/gen_docs.go b/docs/gen_docs.go index 56026b9..3a3f168 100644 --- a/docs/gen_docs.go +++ b/docs/gen_docs.go @@ -1,7 +1,7 @@ package main import ( - "github.com/chand1012/ottodocs/cmd" + "github.com/TimeSurgeLabs/ottodocs/cmd" "github.com/spf13/cobra/doc" ) diff --git a/go.mod b/go.mod index 3bd520c..c25dceb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/chand1012/ottodocs +module github.com/TimeSurgeLabs/ottodocs go 1.20 diff --git a/main.go b/main.go index 57d510e..7fae891 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ Copyright © 2023 Chandler */ package main -import "github.com/chand1012/ottodocs/cmd" +import "github.com/TimeSurgeLabs/ottodocs/cmd" func main() { cmd.Execute() diff --git a/pkg/ai/cmd_question.go b/pkg/ai/cmd_question.go index 79a1bf3..df5c5ec 100644 --- a/pkg/ai/cmd_question.go +++ b/pkg/ai/cmd_question.go @@ -1,9 +1,9 @@ package ai import ( - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" "github.com/sashabaranov/go-openai" ) diff --git a/pkg/ai/commit.go b/pkg/ai/commit.go index 9422298..2e7ac05 100644 --- a/pkg/ai/commit.go +++ b/pkg/ai/commit.go @@ -1,8 +1,8 @@ package ai import ( - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" "github.com/sashabaranov/go-openai" ) diff --git a/pkg/ai/markdown.go b/pkg/ai/markdown.go index e00b772..9ab3e97 100644 --- a/pkg/ai/markdown.go +++ b/pkg/ai/markdown.go @@ -3,8 +3,8 @@ package ai import ( "strings" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" ) func Markdown(filePath, contents, chatPrompt string, conf *config.Config) (string, error) { diff --git a/pkg/ai/pr.go b/pkg/ai/pr.go index bb5dab3..a7e6c16 100644 --- a/pkg/ai/pr.go +++ b/pkg/ai/pr.go @@ -1,8 +1,8 @@ package ai import ( - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" "github.com/sashabaranov/go-openai" ) diff --git a/pkg/ai/question.go b/pkg/ai/question.go index eb1e8e9..bd1902e 100644 --- a/pkg/ai/question.go +++ b/pkg/ai/question.go @@ -6,9 +6,9 @@ import ( "github.com/chand1012/git2gpt/prompt" "github.com/sashabaranov/go-openai" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" ) func Question(files []prompt.GitFile, chatPrompt string, conf *config.Config, verbose bool) (*openai.ChatCompletionStream, error) { diff --git a/pkg/ai/req.go b/pkg/ai/req.go index 11c9093..0cb7a01 100644 --- a/pkg/ai/req.go +++ b/pkg/ai/req.go @@ -4,7 +4,7 @@ import ( "context" "errors" - "github.com/chand1012/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" "github.com/sashabaranov/go-openai" ) diff --git a/pkg/ai/single_file.go b/pkg/ai/single_file.go index 1ba1d81..9d365f3 100644 --- a/pkg/ai/single_file.go +++ b/pkg/ai/single_file.go @@ -6,9 +6,9 @@ import ( "strconv" "strings" - "github.com/chand1012/ottodocs/pkg/config" - "github.com/chand1012/ottodocs/pkg/constants" - "github.com/chand1012/ottodocs/pkg/textfile" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/constants" + "github.com/TimeSurgeLabs/ottodocs/pkg/textfile" ) func extractLineNumber(line string) (int, error) { diff --git a/pkg/gh/issues.go b/pkg/gh/issues.go index 41e78b5..87a831c 100644 --- a/pkg/gh/issues.go +++ b/pkg/gh/issues.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/chand1012/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" ) func GetIssue(owner, repo string, issueNumber int, conf *config.Config) (*IssueWithComments, error) { diff --git a/pkg/gh/pr.go b/pkg/gh/pr.go index e1d9cc0..f3fb099 100644 --- a/pkg/gh/pr.go +++ b/pkg/gh/pr.go @@ -7,7 +7,7 @@ import ( "io" "net/http" - "github.com/chand1012/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" ) func OpenPullRequest(data map[string]string, owner string, repo string, conf *config.Config) (int, error) { diff --git a/pkg/gh/release.go b/pkg/gh/release.go index cf10f16..5d03c31 100644 --- a/pkg/gh/release.go +++ b/pkg/gh/release.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/chand1012/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" ) func CreateDraftRelease(owner, repo, title, body, tag string, conf *config.Config) error { diff --git a/pkg/history/history.go b/pkg/history/history.go index 3d2002f..c2a6728 100644 --- a/pkg/history/history.go +++ b/pkg/history/history.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "github.com/chand1012/ottodocs/pkg/config" + "github.com/TimeSurgeLabs/ottodocs/pkg/config" "github.com/charmbracelet/log" "github.com/sashabaranov/go-openai" ) diff --git a/pkg/shell/shell.go b/pkg/shell/shell.go index 8b9f042..7509d61 100644 --- a/pkg/shell/shell.go +++ b/pkg/shell/shell.go @@ -5,7 +5,7 @@ import ( "path/filepath" "strings" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" ) const ZSH_HISTORY_PATH = ".zsh_history" diff --git a/pkg/textfile/split.go b/pkg/textfile/split.go index e47fea2..2ddeca1 100644 --- a/pkg/textfile/split.go +++ b/pkg/textfile/split.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/chand1012/ottodocs/pkg/calc" - "github.com/chand1012/ottodocs/pkg/utils" + "github.com/TimeSurgeLabs/ottodocs/pkg/calc" + "github.com/TimeSurgeLabs/ottodocs/pkg/utils" ) type SplitFile struct {