Skip to content

Commit

Permalink
feat: update to librfm 1.0.3
Browse files Browse the repository at this point in the history
fix: missing error handling
chore: clean up of go.mod
  • Loading branch information
wilriker committed Oct 9, 2023
1 parent 28bcf46 commit 300c7cf
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@
*.tgz
*.zip
/main
go.work
4 changes: 3 additions & 1 deletion commands/backup.go
Expand Up @@ -50,7 +50,9 @@ func InitBackupOptions(arguments []string) *BackupOptions {
fs := b.GetFlagSet()
fs.BoolVar(&b.removeLocal, "removeLocal", false, "Remove files locally that have been deleted on the Duet")
fs.Var(&b.excls, "exclude", "Exclude paths starting with this string (can be passed multiple times)")
fs.Parse(arguments)
if err := fs.Parse(arguments); err != nil {
log.Fatalf("Error parsing command-line arguments: %s", err)
}

b.dirToBackup = SysDir
l := fs.NArg()
Expand Down
14 changes: 7 additions & 7 deletions compile.fish
@@ -1,19 +1,19 @@
#!/usr/bin/env fish

set gofile cmd/rfm/main.go
set out rfm
set -l gofile cmd/rfm/main.go
set -l out rfm

env GOOS=linux GOARCH=arm go build -o $out $gofile
env GOOS=linux GOARCH=arm go build -tags netgo -o $out $gofile
and tar czf $out-linux_arm.tgz $out LICENSE

env GOOS=linux GOARCH=arm64 go build -o $out $gofile
env GOOS=linux GOARCH=arm64 go build -tags netgo -o $out $gofile
and tar czf $out-linux_arm64.tgz $out LICENSE

env GOOS=windows go build -o $out.exe $gofile
env GOOS=windows go build -tags netgo -o $out.exe $gofile
and zip -r $out-windows_amd64.zip $out.exe LICENSE

env GOOS=darwin go build -o $out $gofile
env GOOS=darwin go build -tags netgo -o $out $gofile
and tar czf $out-darwin_amd64.tgz $out LICENSE

env GOOS=linux go build -o $out $gofile
env GOOS=linux go build -tags netgo -o $out $gofile
and tar czf $out-linux_amd64.tgz $out LICENSE
8 changes: 3 additions & 5 deletions go.mod
@@ -1,11 +1,9 @@
module github.com/wilriker/rfm

go 1.12
go 1.21

require (
github.com/kr/pretty v0.1.0 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/pelletier/go-toml v1.4.0
github.com/wilriker/librfm v1.0.1
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
github.com/pelletier/go-toml v1.9.5
github.com/wilriker/librfm v1.0.3
)
28 changes: 4 additions & 24 deletions go.sum
@@ -1,26 +1,6 @@
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/pelletier/go-toml v1.4.0 h1:u3Z1r+oOXJIkxqw34zVhyPgjBsm6X2wn21NWs/HfSeg=
github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo=
github.com/wilriker/librfm v1.0.0 h1:3YcG6iL1dJNLcD/rNXeF1DPkBfeB2TgTlt7fiNQ/d2U=
github.com/wilriker/librfm v1.0.0/go.mod h1:Gfm/qINcC5vIexqk/HRCMpEDTrXe1AaEB3Gje9TR/pM=
github.com/wilriker/librfm v1.0.1-0.20191016114846-6e08e621e9cd h1:2bL5xs73hDpzpxZl0fTkEIii1IsG5Rr5+rN9dFmOyY0=
github.com/wilriker/librfm v1.0.1-0.20191016114846-6e08e621e9cd/go.mod h1:Gfm/qINcC5vIexqk/HRCMpEDTrXe1AaEB3Gje9TR/pM=
github.com/wilriker/librfm v1.0.1-0.20191016122526-e2c5e7656a9a h1:GLZNPfzU4GmHjIp25SMFVnTvDDOMca4J1CH6wpNay1c=
github.com/wilriker/librfm v1.0.1-0.20191016122526-e2c5e7656a9a/go.mod h1:Gfm/qINcC5vIexqk/HRCMpEDTrXe1AaEB3Gje9TR/pM=
github.com/wilriker/librfm v1.0.1 h1:HcskaDsX2vf0PMWKdSkFjAZR6UDS+7uzqFSbiKpgrgs=
github.com/wilriker/librfm v1.0.1/go.mod h1:Gfm/qINcC5vIexqk/HRCMpEDTrXe1AaEB3Gje9TR/pM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/wilriker/librfm v1.0.3 h1:GBYtjzyqoweUGc9hUbjmp9gjUwThmxgHHXv7OEl5pmM=
github.com/wilriker/librfm v1.0.3/go.mod h1:usX4O2TUX4sLAldxdBOsxRUdAr/uKEM9viQ/ssAAHtw=

0 comments on commit 300c7cf

Please sign in to comment.