Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/release-dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.24'

- name: Set up Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- run: yarn --frozen-lockfile
working-directory: ./ui/desktop
Expand All @@ -37,11 +37,11 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --snapshot --skip-publish --clean
args: release --snapshot --skip=publish --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: binaries
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.24'

- name: Set up Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- run: yarn --frozen-lockfile
working-directory: ./ui/desktop
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x]
go-version: [1.23.x, 1.24.x]
os: [ubuntu-latest, macos-latest, windows-latest]
tags: [cli, desktop]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.0-dev
run: sudo apt-get update && sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.1-dev
if: matrix.os == 'ubuntu-latest'

- name: Test
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ build-frontend:
${MAKE} -C ui/desktop build

.PHONY: build-cli
build-cli: loophole
build-cli:
go build -tags cli -o loophole .

.PHONY: build-desktop generate
build-dektop: build-frontend loophole-desktop
.PHONY: build-desktop
build-desktop: build-frontend
go build -tags desktop -o loophole-desktop .
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package main

Expand Down
2 changes: 1 addition & 1 deletion cmd/account.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/account_login.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/account_logout.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/completion.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/docs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/http.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/path.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
1 change: 0 additions & 1 deletion cmd/virtual-serve.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !desktop
// +build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion cmd/webdav.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !desktop
//go:build !desktop

package cmd

Expand Down
2 changes: 1 addition & 1 deletion config/config_dev.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build dev
//go:build dev

package config

Expand Down
2 changes: 1 addition & 1 deletion config/config_regular.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !dev
//go:build !dev

package config

Expand Down
2 changes: 1 addition & 1 deletion desktop.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build desktop
//go:build desktop

package main

Expand Down
49 changes: 26 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
module github.com/loophole/cli

go 1.20
go 1.25.0

require (
github.com/abbot/go-http-auth v0.4.0
github.com/beevik/guid v0.0.0-20170504223318-d0ea8faecee0
github.com/beevik/guid v1.0.0
github.com/blang/semver/v4 v4.0.0
github.com/briandowns/spinner v1.11.1
github.com/gorilla/websocket v1.4.1
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381
github.com/mattn/go-colorable v0.1.2
github.com/briandowns/spinner v1.23.2
github.com/gorilla/websocket v1.5.3
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/mattn/go-colorable v0.1.14
github.com/mdp/qrterminal v1.0.1
github.com/mitchellh/go-homedir v1.1.0
github.com/ncruces/zenity v0.5.2
github.com/ncruces/zenity v0.10.14
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.19.0
github.com/rs/zerolog v1.35.0
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
github.com/zserge/lorca v0.1.10
golang.org/x/crypto v0.1.0
golang.org/x/net v0.7.0
golang.org/x/term v0.5.0
golang.org/x/crypto v0.50.0
golang.org/x/net v0.53.0
golang.org/x/term v0.42.0
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/akavel/rsrc v0.10.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
github.com/dchest/jsmin v1.0.0 // indirect
github.com/fatih/color v1.19.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josephspurrier/goversioninfo v1.5.0 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
golang.org/x/image v0.5.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
github.com/mattn/go-isatty v0.0.21 // indirect
github.com/randall77/makefat v0.0.0-20260406194835-1b91746796b7 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/image v0.39.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/text v0.36.0 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
rsc.io/qr v0.2.0 // indirect
)
Loading
Loading