Skip to content

Commit

Permalink
Update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
chand1012 committed Jul 3, 2023
1 parent f051bcb commit 1297435
Show file tree
Hide file tree
Showing 30 changed files with 86 additions and 86 deletions.
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions cmd/ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions cmd/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions cmd/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions cmd/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
12 changes: 6 additions & 6 deletions cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/gen_docs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/chand1012/ottodocs/cmd"
"github.com/TimeSurgeLabs/ottodocs/cmd"
"github.com/spf13/cobra/doc"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/chand1012/ottodocs
module github.com/TimeSurgeLabs/ottodocs

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright © 2023 Chandler <[email protected]>
*/
package main

import "github.com/chand1012/ottodocs/cmd"
import "github.com/TimeSurgeLabs/ottodocs/cmd"

func main() {
cmd.Execute()
Expand Down
6 changes: 3 additions & 3 deletions pkg/ai/cmd_question.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/ai/commit.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/ai/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ai/pr.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/ai/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/ai/req.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"

"github.com/chand1012/ottodocs/pkg/config"
"github.com/TimeSurgeLabs/ottodocs/pkg/config"
"github.com/sashabaranov/go-openai"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/ai/single_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gh/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gh/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gh/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/history/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions pkg/textfile/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1297435

Please sign in to comment.