Skip to content

Commit 02d339c

Browse files
committed
Restructuring
1 parent 3c67f61 commit 02d339c

19 files changed

+17
-17
lines changed

cmd/ask.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"github.com/blevesearch/bleve/v2"
1313
"github.com/spf13/cobra"
1414

15-
"github.com/chand1012/ottodocs/ai"
16-
"github.com/chand1012/ottodocs/config"
17-
"github.com/chand1012/ottodocs/utils"
15+
"github.com/chand1012/ottodocs/pkg/ai"
16+
"github.com/chand1012/ottodocs/pkg/config"
17+
"github.com/chand1012/ottodocs/pkg/utils"
1818
)
1919

2020
// askCmd represents the ask command

cmd/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99

1010
gopenai "github.com/CasualCodersProjects/gopenai"
11-
"github.com/chand1012/ottodocs/config"
11+
"github.com/chand1012/ottodocs/pkg/config"
1212
"github.com/spf13/cobra"
1313
)
1414

cmd/doc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
"github.com/spf13/cobra"
1111

12-
"github.com/chand1012/ottodocs/ai"
13-
"github.com/chand1012/ottodocs/config"
14-
"github.com/chand1012/ottodocs/utils"
12+
"github.com/chand1012/ottodocs/pkg/ai"
13+
"github.com/chand1012/ottodocs/pkg/config"
14+
"github.com/chand1012/ottodocs/pkg/utils"
1515
)
1616

1717
// docCmd represents the doc command

cmd/docs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"os"
99
"path/filepath"
1010

11-
"github.com/chand1012/ottodocs/ai"
12-
"github.com/chand1012/ottodocs/config"
13-
"github.com/chand1012/ottodocs/utils"
11+
"github.com/chand1012/ottodocs/pkg/ai"
12+
"github.com/chand1012/ottodocs/pkg/config"
13+
"github.com/chand1012/ottodocs/pkg/utils"
1414
"github.com/spf13/cobra"
1515
)
1616

cmd/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"os"
99

10-
"github.com/chand1012/ottodocs/config"
10+
"github.com/chand1012/ottodocs/pkg/config"
1111
"github.com/spf13/cobra"
1212
)
1313

cmd/setModel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package cmd
66
import (
77
"github.com/spf13/cobra"
88

9-
"github.com/chand1012/ottodocs/config"
10-
"github.com/chand1012/ottodocs/utils"
9+
"github.com/chand1012/ottodocs/pkg/config"
10+
"github.com/chand1012/ottodocs/pkg/utils"
1111
)
1212

1313
var VALID_MODELS = []string{"gpt-4", "gpt-4-0314", "gpt-4-32k", "gpt-4-32k-0314", "gpt-3.5-turbo", "gpt-3.5-turbo-0301"}
File renamed without changes.

ai/markdown.go renamed to pkg/ai/markdown.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
gopenai "github.com/CasualCodersProjects/gopenai"
88
ai_types "github.com/CasualCodersProjects/gopenai/types"
9-
"github.com/chand1012/ottodocs/constants"
9+
"github.com/chand1012/ottodocs/pkg/constants"
1010
)
1111

1212
func Markdown(filePath, contents, chatPrompt, APIKey, model string) (string, error) {

ai/question.go renamed to pkg/ai/question.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
gopenai "github.com/CasualCodersProjects/gopenai"
88
ai_types "github.com/CasualCodersProjects/gopenai/types"
9-
"github.com/chand1012/ottodocs/constants"
9+
"github.com/chand1012/ottodocs/pkg/constants"
1010
)
1111

1212
func Question(filePath, fileContent, chatPrompt, APIKey, model string) (string, error) {

ai/single_file.go renamed to pkg/ai/single_file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
gopenai "github.com/CasualCodersProjects/gopenai"
1010
ai_types "github.com/CasualCodersProjects/gopenai/types"
1111

12-
"github.com/chand1012/ottodocs/constants"
13-
"github.com/chand1012/ottodocs/utils/textfile"
12+
"github.com/chand1012/ottodocs/pkg/constants"
13+
"github.com/chand1012/ottodocs/pkg/utils/textfile"
1414
)
1515

1616
func extractLineNumber(line string) (int, error) {

0 commit comments

Comments
 (0)