Skip to content

Commit ad028a6

Browse files
committed
Fix the Markdown lint GitHub action. Add go.mod and clean up go.sum.
Update the contributing guide. Restructure folders. Fix go import.
1 parent 1e8e37e commit ad028a6

11 files changed

+23
-5
lines changed

.markdownlint.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# MD013/line-length
2+
MD013: false
3+
4+
# MD040/fenced-code-language
5+
MD040: false

CONTRIBUTING.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ go get -u ./...
1515
Example run:
1616

1717
```
18-
go run src/donya.go
18+
go run donya.go
1919
```
2020

2121
To build the Go file into an executable for Linux run:
2222

2323
```
24-
go build src/donya.go
24+
go build donya.go
2525
```
2626

2727
And generally for Windows:
2828

2929
```
30-
env GOOS=windows GOARCH=amd64 go build src/donya.go
30+
env GOOS=windows GOARCH=amd64 go build donya.go
3131
```
3232

3333
To see all the platforms run:
@@ -42,6 +42,12 @@ You can install `revive` with:
4242
go get -u github.com/mgechev/revive
4343
```
4444

45+
To clean up the `go.sum` file run:
46+
47+
```
48+
go mod tidy
49+
```
50+
4551
- [Go](https://golang.org/) - Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
4652
- [revive](https://github.com/mgechev/revive) - 🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint.
4753
- [Cobra](https://github.com/spf13/cobra) - A Commander for modern Go CLI interactions

src/cmd/install.go cmd/install.go

File renamed without changes.

src/cmd/purge.go cmd/purge.go

File renamed without changes.

src/cmd/root.go cmd/root.go

File renamed without changes.

src/cmd/search.go cmd/search.go

File renamed without changes.
File renamed without changes.

src/cmd/update.go cmd/update.go

File renamed without changes.

src/donya.go donya.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"./cmd"
4+
"github.com/DonyaOS/PackageManager/cmd"
55
)
66

77
func main() {

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/DonyaOS/PackageManager
2+
3+
go 1.15
4+
5+
require (
6+
github.com/spf13/cobra v1.0.0
7+
github.com/spf13/pflag v1.0.5 // indirect
8+
)

go.sum

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
33
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
44
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
55
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
6-
github.com/amir-shiati/PackageManager v0.0.0-20200831102454-c7ad5b4688a0 h1:Yec7HbAH3ZleDQD+8Sz5dgA+X4WUs48I7SlIOmffaeQ=
76
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
87
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
98
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=

0 commit comments

Comments
 (0)