feat(wofi): add support for dark mode

This commit is contained in:
Bruno Carlin 2025-02-11 15:23:05 +01:00
parent 4857f6cab1
commit bbb4edbf45
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 8E254EA0FFEB9B6D
555 changed files with 8823 additions and 6 deletions

13
.gitignore vendored
View file

@ -1,7 +1,7 @@
lfm/.config/lfm/lfm.history
lazygit/.config/jesseduffield/lazygit/state.yml
lazygit/.config/**/*.patch
lazygit/.config/lazygit/*.patch
lazygit/.config/lazygit/state.yml
bin/.local/bin/
@ -16,6 +16,9 @@ mutt/.config/mutt/*.mailboxes
matterhorn/.config/matterhorn/history.txt
matterhorn/.config/matterhorn/last_run_state_*.json
nvim/.config/nvim/plugin/packer_compiled.lua
nvim/.config/nvim/spell
ssh/.ssh/*
ssh/.ssh/known_hosts*
!ssh/.ssh/config
@ -27,10 +30,8 @@ vifm/.config/vifm/vifminfo.json*
vim/.vim/autoload/
vim/.vim/colors/
vim/.vim/plugged/
vim/.vim/spell
vim/.vim/swap/
vim/.vim/undo/
lazygit/.config/lazygit/state.yml
nvim/.config/nvim/plugin/packer_compiled.lua
nvim/.config/nvim/spell
vim/.vim/spell
wofi/.config/wofi/style.css

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
cat \
"$HOME/.config/wofi/colors-dark.css" \
"$HOME/.config/wofi/base.css" \
> "$HOME/.config/wofi/style.css"

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
cat \
"$HOME/.config/wofi/colors-light.css" \
"$HOME/.config/wofi/base.css" \
> "$HOME/.config/wofi/style.css"

View file

@ -0,0 +1,22 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,14 +26,19 @@ stages:
- test
- build
+code_navigation:
+ stage: test
+ image: sourcegraph/lsif-go:v1
+ allow_failure: true # recommended
+ script:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,14 +31,15 @@ code_navigation:
image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
+ - lsif-go
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,14 +32,15 @@ code_navigation:
allow_failure: true # recommended
script:
- lsif-go
+ artifacts:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,14 +33,15 @@ code_navigation:
script:
- lsif-go
artifacts:
+ reports:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,14 +34,15 @@ code_navigation:
- lsif-go
artifacts:
reports:
+ lsif: dump.lsif
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,14 +35,15 @@ code_navigation:
artifacts:
reports:
lsif: dump.lsif
+
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,11 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,8 +11,7 @@ before_script:
- mkdir -p .gocache
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- - which golangci-lint >/dev/null 2>&1 && golangci-lint --version | grep "$GOLANGCI_LINT_VERSION" >/dev/null 2>&1
|| curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v$GOLANGCI_LINT_VERSION
- go get -u golang.org/x/tools/cmd/stringer
- env

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,6 @@ before_script:
- mkdir -p .gocache
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- || curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v$GOLANGCI_LINT_VERSION
- go get -u golang.org/x/tools/cmd/stringer
- env

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,14 +34,15 @@ code_navigation:
reports:
lsif: dump.lsif
+lint:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,14 +35,15 @@ code_navigation:
lsif: dump.lsif
lint:
+ stage: test
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,14 +36,15 @@ code_navigation:
lint:
stage: test
+ image: golangci/golangci-lint:latest
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,14 +37,15 @@ code_navigation:
lint:
stage: test
image: golangci/golangci-lint:latest
+ script:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,14 +38,15 @@ lint:
stage: test
image: golangci/golangci-lint:latest
script:
+ - golangci-lint run --out-format junit-xml > lint.junit.xml
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,14 +39,15 @@ lint:
image: golangci/golangci-lint:latest
script:
- golangci-lint run --out-format junit-xml > lint.junit.xml
+ artifacts:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,14 +40,15 @@ lint:
script:
- golangci-lint run --out-format junit-xml > lint.junit.xml
artifacts:
+ reports:
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,14 +41,15 @@ lint:
- golangci-lint run --out-format junit-xml > lint.junit.xml
artifacts:
reports:
+ junit: lint.junit.xml
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,14 +42,15 @@ lint:
artifacts:
reports:
junit: lint.junit.xml
+
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,16 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,13 +44,12 @@ lint:
junit: lint.junit.xml
tests:
stage: test
script:
- go generate ./pkg/...
- gofmt -d -e ./pkg/ ./cmd/
- - ./make.sh check
- go test -coverpkg ./cmd/...,./pkg/... -coverprofile cover.out -v ./cmd/... ./pkg/...
- go tool cover -func=cover.out
compile:
stage: build

View file

@ -0,0 +1,17 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,14 +8,13 @@ image: golang:latest
# - mkdir -p .gocache
# - env
-cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/
variables:
GOPATH: "$CI_PROJECT_DIR/.gocache"
PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test

View file

@ -0,0 +1,16 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,13 +8,12 @@ image: golang:latest
# - mkdir -p .gocache
# - env
- key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/
variables:
GOPATH: "$CI_PROJECT_DIR/.gocache"
PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,12 +8,11 @@ image: golang:latest
# - mkdir -p .gocache
# - env
- paths:
- $CI_PROJECT_DIR/.gocache/
variables:
GOPATH: "$CI_PROJECT_DIR/.gocache"
PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test

View file

@ -0,0 +1,14 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,11 +8,10 @@ image: golang:latest
# - mkdir -p .gocache
# - env
- - $CI_PROJECT_DIR/.gocache/
variables:
GOPATH: "$CI_PROJECT_DIR/.gocache"
PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test

View file

@ -0,0 +1,20 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,17 +9,16 @@ image: golang:latest
# - env
-variables:
GOPATH: "$CI_PROJECT_DIR/.gocache"
PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test
- build
code_navigation:
stage: test
image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
- lsif-go

View file

@ -0,0 +1,19 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,16 +9,15 @@ image: golang:latest
# - env
- GOPATH: "$CI_PROJECT_DIR/.gocache"
PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test
- build
code_navigation:
stage: test
image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
- lsif-go

View file

@ -0,0 +1,18 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,15 +9,14 @@ image: golang:latest
# - env
- PATH: "$CI_PROJECT_DIR/.gocache/bin:$PATH"
stages:
- test
- build
code_navigation:
stage: test
image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
- lsif-go

View file

@ -0,0 +1,17 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,14 +9,13 @@ image: golang:latest
# - env
-
stages:
- test
- build
code_navigation:
stage: test
image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
- lsif-go

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,6 +35,7 @@ lint:
tests:
stage: test
before_script:
+ - export GOPATH="$CI_PROJECT_DIR/.gocache"
- go get gotest.tools/gotestsum
- go get -u golang.org/x/tools/cmd/stringer
- go generate ./cmd/... ./pkg/...

View file

@ -0,0 +1,11 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,8 @@ lint:
tests:
stage: test
before_script:
- export GOPATH="$CI_PROJECT_DIR/.gocache"
+ - export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- go get gotest.tools/gotestsum
- go get -u golang.org/x/tools/cmd/stringer
- go generate ./cmd/... ./pkg/...

View file

@ -0,0 +1,12 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,8 +45,9 @@ tests:
after_script:
- go get github.com/boumenot/gocover-cobertura
- gocover-cobertura < coverage.txt > coverage.xml
- go tool cover -func=coverage.txt
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
+ cache:
artifacts:
reports:
cobertura: coverage.xml

View file

@ -0,0 +1,13 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,9 +45,10 @@ tests:
after_script:
- go get github.com/boumenot/gocover-cobertura
- gocover-cobertura < coverage.txt > coverage.xml
- go tool cover -func=coverage.txt
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
cache:
+ key: go_dependencies_cache
artifacts:
reports:
cobertura: coverage.xml

View file

@ -0,0 +1,14 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,10 +45,11 @@ tests:
after_script:
- go get github.com/boumenot/gocover-cobertura
- gocover-cobertura < coverage.txt > coverage.xml
- go tool cover -func=coverage.txt
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
cache:
key: go_dependencies_cache
+ paths:
artifacts:
reports:
cobertura: coverage.xml

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,11 +45,12 @@ tests:
after_script:
- go get github.com/boumenot/gocover-cobertura
- gocover-cobertura < coverage.txt > coverage.xml
- go tool cover -func=coverage.txt
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
cache:
key: go_dependencies_cache
paths:
+ - $CI_PROJECT_DIR/.gocache/
artifacts:
reports:
cobertura: coverage.xml

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,7 +15,6 @@ stages:
code_navigation:
stage: test
- image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
- lsif-go

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,6 +15,7 @@ stages:
code_navigation:
stage: test
+ image: sourcegraph/lsif-go:latest
allow_failure: true # recommended
script:
- lsif-go

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,7 +45,6 @@ tests:
after_script:
- go get github.com/boumenot/gocover-cobertura
- gocover-cobertura < coverage.txt > coverage.xml
- - go tool cover -func=coverage.txt
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
cache:
key: go_dependencies_cache

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,6 +45,7 @@ tests:
after_script:
- go get github.com/boumenot/gocover-cobertura
- gocover-cobertura < coverage.txt > coverage.xml
+ - go tool cover -func=coverage.txt | grep "total:"
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
cache:
key: go_dependencies_cache

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,6 @@ lint:
tests:
stage: test
before_script:
-
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- go get gotest.tools/gotestsum

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
-ACTION=$1
shift
#####################################################################
### TASKS

View file

@ -0,0 +1,9 @@
--- a/make.sh
+++ b/make.sh
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
-shift
#####################################################################
### TASKS

View file

@ -0,0 +1,9 @@
--- a/make.sh
+++ b/make.sh
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
+set -e
#####################################################################
### TASKS

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -2,6 +2,7 @@
set -e
+ACTION=${1:-help}
#####################################################################
### TASKS
#####################################################################

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -3,6 +3,7 @@
set -e
ACTION=${1:-help}
+shift || true
#####################################################################
### TASKS
#####################################################################

View file

@ -0,0 +1,13 @@
--- a/make.sh
+++ b/make.sh
@@ -80,9 +80,10 @@ t_doc_dist() {
mv "doc/build/$name.zip" build
}
+t_generate() {
t_build() {
mkdir -p build
go generate ./cmd/... ./pkg/...
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,13 @@
--- a/make.sh
+++ b/make.sh
@@ -81,9 +81,10 @@ t_doc_dist() {
}
t_generate() {
+ go get -u golang.org/x/tools/cmd/stringer
t_build() {
mkdir -p build
go generate ./cmd/... ./pkg/...
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,13 @@
--- a/make.sh
+++ b/make.sh
@@ -82,9 +82,10 @@ t_doc_dist() {
t_generate() {
go get -u golang.org/x/tools/cmd/stringer
+ go generate ./cmd/... ./pkg/...
t_build() {
mkdir -p build
go generate ./cmd/... ./pkg/...
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,13 @@
--- a/make.sh
+++ b/make.sh
@@ -83,9 +83,10 @@ t_doc_dist() {
t_generate() {
go get -u golang.org/x/tools/cmd/stringer
go generate ./cmd/... ./pkg/...
+}
t_build() {
mkdir -p build
go generate ./cmd/... ./pkg/...
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,13 @@
--- a/make.sh
+++ b/make.sh
@@ -84,9 +84,10 @@ t_generate() {
go get -u golang.org/x/tools/cmd/stringer
go generate ./cmd/... ./pkg/...
}
+
t_build() {
mkdir -p build
go generate ./cmd/... ./pkg/...
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -87,7 +87,6 @@ t_generate() {
t_build() {
mkdir -p build
- go generate ./cmd/... ./pkg/...
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -87,6 +87,7 @@ t_generate() {
t_build() {
mkdir -p build
+
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -88,6 +88,7 @@ t_generate() {
t_build() {
mkdir -p build
+ t_generate
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -89,6 +89,7 @@ t_build() {
mkdir -p build
t_generate
+
CGO_ENABLED=1 go build -ldflags " \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Date=$(date -u --iso-8601=seconds) \
-X code.waarp.fr/waarp-gateway/waarp-gateway/pkg/version.Num=$(git describe --tags --dirty) \

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -148,7 +148,6 @@ Warning:
EOW
mkdir -p build
- go generate ./cmd/... ./pkg/...
GOOS=linux GOARCH=amd64 build_static_binaries
GOOS=linux GOARCH=386 build_static_binaries
GOOS=windows GOARCH=amd64 CC="x86_64-w64-mingw32-gcc" build_static_binaries

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -148,6 +148,7 @@ Warning:
EOW
mkdir -p build
+
GOOS=linux GOARCH=amd64 build_static_binaries
GOOS=linux GOARCH=386 build_static_binaries
GOOS=windows GOARCH=amd64 CC="x86_64-w64-mingw32-gcc" build_static_binaries

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -149,6 +149,7 @@ EOW
mkdir -p build
+ t_generate
GOOS=linux GOARCH=amd64 build_static_binaries
GOOS=linux GOARCH=386 build_static_binaries
GOOS=windows GOARCH=amd64 CC="x86_64-w64-mingw32-gcc" build_static_binaries

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -150,6 +150,7 @@ EOW
mkdir -p build
t_generate
+
GOOS=linux GOARCH=amd64 build_static_binaries
GOOS=linux GOARCH=386 build_static_binaries
GOOS=windows GOARCH=amd64 CC="x86_64-w64-mingw32-gcc" build_static_binaries

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -215,6 +215,7 @@ t_usage() {
echo ""
echo "Available actions"
echo ""
+ echo " generate Runs go generate"
echo " build Builds binaries"
echo " build dist Builds binaries for distribution"
echo " package Generates packages"

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -236,6 +236,7 @@ t_usage() {
#####################################################################
case $ACTION in
+ generate)
build)
SUB=$1
case $SUB in

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -237,6 +237,7 @@ t_usage() {
case $ACTION in
generate)
+ t_generate
build)
SUB=$1
case $SUB in

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -238,6 +238,7 @@ t_usage() {
case $ACTION in
generate)
t_generate
+ ;;
build)
SUB=$1
case $SUB in

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -239,6 +239,7 @@ case $ACTION in
generate)
t_generate
;;
+
build)
SUB=$1
case $SUB in

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -295,7 +295,6 @@ case $ACTION in
;;
bump)
- t_bump $1
;;
*)

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -295,6 +295,7 @@ case $ACTION in
;;
bump)
+ t_bump "$1"
;;
*)

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,7 +74,6 @@ package:
stage: build
only: [ tags ]
before_script:
- - apt update -y && apt install -y file && apt clean && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,6 +74,7 @@ package:
stage: build
only: [ tags ]
before_script:
+ - apt update -y && apt install -y file gcc-multilib && apt clean && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,7 +74,6 @@ package:
stage: build
only: [ tags ]
before_script:
- - apt update -y && apt install -y file gcc-multilib && apt clean && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,6 +74,7 @@ package:
stage: build
only: [ tags ]
before_script:
+ - apt update -y && apt install -y file gcc-multilib gcc-mingw-w64-x86-64 && apt clean && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,12 +74,11 @@ package:
stage: build
only: [ tags ]
before_script:
- - apt update -y && apt install -y file gcc-multilib gcc-mingw-w64-x86-64 && apt clean && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,11 +74,12 @@ package:
stage: build
only: [ tags ]
before_script:
+ - |
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,11 +75,12 @@ package:
only: [ tags ]
before_script:
- |
+ apt update -y
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,11 +76,12 @@ package:
before_script:
- |
apt update -y
+ && apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,11 +77,12 @@ package:
- |
apt update -y
&& apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv
+ && apt clean
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,15 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,11 +78,12 @@ package:
apt update -y
&& apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv
&& apt clean
+ && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,13 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -81,9 +81,10 @@ package:
&& rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
+ - go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
script:
- ./make.sh package
cache:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/

View file

@ -0,0 +1,7 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,3 +88,4 @@ package:
key: go_dependencies_cache
paths:
- $CI_PROJECT_DIR/.gocache/
+ artifacts:

View file

@ -0,0 +1,7 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,3 +89,4 @@ package:
paths:
- $CI_PROJECT_DIR/.gocache/
artifacts:
+ paths:

View file

@ -0,0 +1,7 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -90,3 +90,4 @@ package:
- $CI_PROJECT_DIR/.gocache/
artifacts:
paths:
+ - build/

View file

@ -0,0 +1,7 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -91,3 +91,4 @@ package:
artifacts:
paths:
- build/
+

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,7 @@ image: golang:latest
stages:
- test
- build
+ - release
code_navigation:
stage: test

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,7 +12,6 @@ image: golang:latest
stages:
- test
- build
- - release
code_navigation:
stage: test

View file

@ -0,0 +1,7 @@
--- a/doc/requirement.txt
+++ b/doc/requirement.txt
@@ -1,4 +1,3 @@
-git+https://git@code.waarp.fr/waarp/sphinx-template.git
sphinx < 4.1.0
sphinx-autobuild
sphinxcontrib-httpdomain

View file

@ -0,0 +1,7 @@
--- a/doc/requirement.txt
+++ b/doc/requirement.txt
@@ -1,3 +1,4 @@
+git+https://code.waarp.fr/waarp/sphinx-template.git
sphinx < 4.1.0
sphinx-autobuild
sphinxcontrib-httpdomain

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -154,7 +154,6 @@ build_static_binaries() {
if [ "$GOOS" = "linux" ]; then
local out binary_file
- for name in waarp-gateway waarp_gatewayd updateconf get-remote; do
binary_file="build/${name}_${GOOS}_${GOARCH}"
out=$(file "$binary_file")

View file

@ -0,0 +1,10 @@
--- a/make.sh
+++ b/make.sh
@@ -154,6 +154,7 @@ build_static_binaries() {
if [ "$GOOS" = "linux" ]; then
local out binary_file
+ for name in waarp-gateway waarp-gatewayd updateconf get-remote; do
binary_file="build/${name}_${GOOS}_${GOARCH}"
out=$(file "$binary_file")

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,7 +60,6 @@ compile:
stage: build
except: [ tags ]
before_script:
- - apt update -y && apt install -y file && apt clean && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,6 +60,7 @@ compile:
stage: build
except: [ tags ]
before_script:
+ - >
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,6 +61,7 @@ compile:
except: [ tags ]
before_script:
- >
+ apt update -y
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -62,6 +62,7 @@ compile:
before_script:
- >
apt update -y
+ && apt install -y file gcc-multilib gcc-mingw-w64-x86-64
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,6 +63,7 @@ compile:
- >
apt update -y
&& apt install -y file gcc-multilib gcc-mingw-w64-x86-64
+ && apt clean
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -64,6 +64,7 @@ compile:
apt update -y
&& apt install -y file gcc-multilib gcc-mingw-w64-x86-64
&& apt clean
+ && rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
script:

View file

@ -0,0 +1,16 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,13 +78,12 @@ package:
stage: build
only: [ tags ]
before_script:
- - |
apt update -y
&& apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv
&& apt clean
&& rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
script:
- ./make.sh package

View file

@ -0,0 +1,16 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,12 +78,13 @@ package:
stage: build
only: [ tags ]
before_script:
+ - >
apt update -y
&& apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv
&& apt clean
&& rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
script:
- ./make.sh package

View file

@ -0,0 +1,14 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,11 +80,10 @@ package:
before_script:
- >
apt update -y
- && apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv
&& apt clean
&& rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
script:
- ./make.sh package

View file

@ -0,0 +1,14 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,10 +80,11 @@ package:
before_script:
- >
apt update -y
+ && apt install -y file gcc-multilib gcc-mingw-w64-x86-64 virtualenv zip
&& apt clean
&& rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
- go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
script:
- ./make.sh package

View file

@ -0,0 +1,10 @@
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,6 +85,7 @@ package:
&& rm -rf /var/lib/apt/lists/*
- export GOPATH="$CI_PROJECT_DIR/.gocache"
- export PATH="$CI_PROJECT_DIR/.gocache/bin:$PATH"
+ - git config --global url."https://gitlab-ci-token:$CI_JOB_TOKEN@code.waarp.fr".insteadOf "https://code.waarp.fr"
- go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
script:
- ./make.sh package

View file

@ -0,0 +1,10 @@
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -604,6 +604,7 @@ linters-settings:
# Select the Go version to target. The default is '1.13'.
#go: "1.15"
+ varnamelen:
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature

View file

@ -0,0 +1,10 @@
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -605,6 +605,7 @@ linters-settings:
#go: "1.15"
varnamelen:
+ # The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature

View file

@ -0,0 +1,10 @@
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -606,6 +606,7 @@ linters-settings:
varnamelen:
# The longest distance, in source lines, that is being considered a "small scope." (defaults to 5)
+ # Variables used in at most this many lines will be ignored.
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature

Some files were not shown because too many files have changed in this diff Show more