Skip to content

Commit

Permalink
Refactor code structure and update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Athul Muralidhar committed Sep 26, 2023
1 parent ce2a2af commit f933da1
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ go.work
/.idea/sonarlint/issuestore/b/2/b27e432ec96355a0a0d6dcfb9896e10e33a78dba
/.idea/sonarlint/securityhotspotstore/a/8/a81b87ba622b933d644c063932316f4f3a59e585
/.idea/sonarlint/securityhotspotstore/b/2/b27e432ec96355a0a0d6dcfb9896e10e33a78dba
/.idea/sonarlint/issuestore/d/7/d72184c10ec6e1cdcca2cadf1989ae0d309c1ecf
/.idea/sonarlint/securityhotspotstore/d/7/d72184c10ec6e1cdcca2cadf1989ae0d309c1ecf
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions cmd/install.go → pkg/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package cmd

import (
"fmt"
"github.com/AthulMuralidhar/protobuff-installer/cmd/downloader"
"github.com/AthulMuralidhar/protobuff-installer/cmd/semvar"
"github.com/AthulMuralidhar/protobuff-installer/cmd/unzip"
"github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/downloader"
"github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/semvar"
"github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/unzip"
"github.com/spf13/cobra"
"go.uber.org/zap"
"log"
Expand Down
2 changes: 1 addition & 1 deletion cmd/prompts.go → pkg/cmd/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"errors"
"fmt"
"github.com/AthulMuralidhar/protobuff-installer/cmd/semvar"
"github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/semvar"
"os"
"strconv"
"strings"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package unzip

import (
"github.com/AthulMuralidhar/protobuff-installer/cmd/downloader"
"github.com/AthulMuralidhar/protobuff-installer/pkg/cmd/downloader"
"go.uber.org/zap"
"os"
"testing"
Expand Down
4 changes: 3 additions & 1 deletion main.go → pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ based off of: https://github.com/divrhino/studybuddy/blob/master/cmd/new.go
*/
package main

import "github.com/AthulMuralidhar/protobuff-installer/cmd"
import (
"github.com/AthulMuralidhar/protobuff-installer/pkg/cmd"
)

func main() {
cmd.Execute()
Expand Down

0 comments on commit f933da1

Please sign in to comment.