Skip to content

Commit 0637c2a

Browse files
authored
feat: change the cmd layout for go install (#16)
Signed-off-by: Gaius <[email protected]>
1 parent b607fde commit 0637c2a

11 files changed

+44
-11
lines changed

.gitignore

+33
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,36 @@ go.work.sum
2323

2424
# env file
2525
.env
26+
27+
### macOS ###
28+
# General
29+
.DS_Store
30+
.AppleDouble
31+
.LSOverride
32+
33+
# Icon must end with two \r
34+
Icon
35+
36+
37+
# Thumbnails
38+
._*
39+
40+
# Files that might appear in the root of a volume
41+
.DocumentRevisions-V100
42+
.fseventsd
43+
.Spotlight-V100
44+
.TemporaryItems
45+
.Trashes
46+
.VolumeIcon.icns
47+
.com.apple.timemachine.donotpresent
48+
49+
# Directories potentially created on remote AFP share
50+
.AppleDB
51+
.AppleDesktop
52+
Network Trash Folder
53+
Temporary Items
54+
.apdisk
55+
56+
### macOS Patch ###
57+
# iCloud generated files
58+
*.icloud

cmd/modctl/build.go cmd/build.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/list.go cmd/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/login.go cmd/login.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"bufio"

cmd/modctl/logout.go cmd/logout.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/prune.go cmd/prune.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/pull.go cmd/pull.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/push.go cmd/push.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/rm.go cmd/rm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"context"

cmd/modctl/root.go cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package modctl
17+
package cmd
1818

1919
import (
2020
"os"

cmd/main.go main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package main
1818

19-
import "github.com/CloudNativeAI/modctl/cmd/modctl"
19+
import "github.com/CloudNativeAI/modctl/cmd"
2020

2121
func main() {
22-
modctl.Execute()
22+
cmd.Execute()
2323
}

0 commit comments

Comments
 (0)