Read-only mirror of https://github.com/swissgeo/tool-golang-public — SWISSGEO. Issues & pull requests at the source.
  • Go 94.2%
  • Makefile 5.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Brice Schaffner 11f5a411f9
Merge pull request #4 from swissgeo/feat/codecov
chore: Added codecov report - #minor
2026-09-07 11:49:03 +02:00
.github Delete .github/workflows/pr-auto-infra-main.yml 2026-08-28 14:53:00 +02:00
.vscode GPS-388: Improve slightly the tab completion performance of e2e-tests --tests 2026-02-12 10:21:33 +01:00
aws-ssm GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
codebuild GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
e2e-tests GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
k8s-validate GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
lib GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
.dockerignore PB-1498: Created Docker image for e2e-tests 2025-03-26 11:12:34 +01:00
.gitignore chore: Added codecov report 2026-09-07 10:40:30 +02:00
.golangci.yaml GPS-388: Updated golang to 1.25.7 and updated golangci-lint version 2026-02-11 19:20:20 +01:00
Dockerfile.in GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
go.mod GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
go.sum GPS-955: Changed reference of source repo to new repo 2026-08-28 14:47:37 +02:00
LICENSE.md Initial commit 2025-02-11 06:41:23 +01:00
Makefile chore: Added codecov report 2026-09-07 10:40:30 +02:00
README.md chore: Added codecov report 2026-09-07 10:40:30 +02:00

Golang CLI Tools for SWISSGEO

Branch Status Coverage
main Build Status codecov-main

This repository contains CLI tools written in golang to manage SWISSGEO services and infrastructure. It is also used to manage the legacy BGDI services and infrastructure and has been ported from https://github.com/geoadmin/tool-golang-bgdi.

Repository structure

tool-golang-public
    |-- TOOL_NAME
    .      |-- main.go
           |-- README.md
           |-- cmd
                |-- root.go

Naming convention

TOOL_NAME should be in kebab case

Formatting and linting

Code should be formatted with goimports and linted with golangci-lint

goimports -w .
golangci-lint run

To simplify the linting and formatting a makefile is available

make format
make lint

Create new application skeleton

go install github.com/spf13/cobra-cli@latest
cobra-cli init <app-name>

CLI commands

See individual directories for the documentation of the respective command.