Skip to content

Commit

Permalink
Merge pull request #66 from RealFax/dev
Browse files Browse the repository at this point in the history
patch. update github action file, windows support
  • Loading branch information
PotatoCloud authored Jan 4, 2024
2 parents 2a9e6cd + 41330cc commit 03441e4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 132 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
go-version: '1.21'

- name: Making RedQueen ${{ matrix.goos }}/${{ matrix.goarch }}
run: go build -o rqctl.${{ matrix.goos }}.${{ matrix.goarch }} ./cmd/rqctl/main.go
run: go build -o rqctl.${{ matrix.goos }}.${{ matrix.goarch }} ./cmd/rqctl
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
Expand Down
111 changes: 0 additions & 111 deletions pkg/fs/dir.go

This file was deleted.

20 changes: 0 additions & 20 deletions pkg/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@ func IsExist(path string) bool {
return err == nil || os.IsExist(err)
}

// Remove is wrapper for os.Remove
func Remove(path string) error {
return os.Remove(path)
}

// Move is wrapper for os.Rename
func Move(src, dst string) error {
return os.Rename(src, dst)
}

// Mkdir is wrapper for os.MkdirAll
func Mkdir(path string) error {
return os.MkdirAll(path, 0750)
}

func MustOpenWithFlag(path string, flag int) (*os.File, error) {
dstDir := path[0 : strings.LastIndex(path, "/")+1]
if !IsExist(dstDir) {
Expand All @@ -46,11 +31,6 @@ func MustOpenWithAppend(path string) (*os.File, error) {
return MustOpenWithFlag(path, os.O_WRONLY|os.O_APPEND|os.O_CREATE)
}

// Open is a wrapper for os.Open
func Open(path string) (*os.File, error) {
return os.Open(path)
}

func GetFilePerm(path string) (string, error) {
f, err := os.Stat(path)
if err != nil {
Expand Down

0 comments on commit 03441e4

Please sign in to comment.