Projects STRLCPY cdebug Commits 609c9700
🤬
  • ■ ■ ■ ■ ■ ■
    .gitignore
    skipped 2 lines
    3 3   
    4 4  cdebug
    5 5   
     6 +dist/
     7 + 
  • ■ ■ ■ ■ ■ ■
    .goreleaser.yaml
     1 +project_name: cdebug
     2 +before:
     3 + hooks:
     4 + - go mod tidy
     5 +builds:
     6 + - env:
     7 + - CGO_ENABLED=0
     8 + goos:
     9 + - linux
     10 + - darwin
     11 + goarch:
     12 + - amd64
     13 + - arm64
     14 + ignore:
     15 + - goos: linux
     16 + goarch: arm64
     17 +archives:
     18 + - replacements:
     19 + amd64: x86_64
     20 +checksum:
     21 + name_template: 'checksums.txt'
     22 +snapshot:
     23 + name_template: "{{ incpatch .Version }}-next"
     24 +changelog:
     25 + sort: asc
     26 + filters:
     27 + exclude:
     28 + - '^docs:'
     29 + - '^test:'
     30 + 
     31 +# modelines, feel free to remove those if you don't want/use them:
     32 +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
     33 +# vim: set ts=2 sw=2 tw=0 fo=cnqoj
     34 + 
  • ■ ■ ■ ■ ■
    Makefile
    1  -build:
    2  - go build -o cdebug
     1 +GIT_COMMIT=$(shell git rev-parse --verify HEAD)
     2 +UTC_NOW=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
     3 + 
     4 +build-dev:
     5 + go build \
     6 + -ldflags="-X 'main.version=dev' -X 'main.commit=${GIT_COMMIT}' -X 'main.date=${UTC_NOW}'" \
     7 + -o cdebug
     8 + 
     9 +release:
     10 + goreleaser --rm-dist
     11 + 
     12 +release-snapshot:
     13 + goreleaser release --snapshot --rm-dist
    3 14   
  • ■ ■ ■ ■
    go.mod
    skipped 4 lines
    5 5  require (
    6 6   github.com/docker/cli v20.10.20+incompatible
    7 7   github.com/docker/docker v20.10.20+incompatible
     8 + github.com/docker/go-connections v0.4.0
    8 9   github.com/google/uuid v1.3.0
    9 10   github.com/moby/sys/signal v0.7.0
    10 11   github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae
    skipped 5 lines
    16 17   github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
    17 18   github.com/Microsoft/go-winio v0.6.0 // indirect
    18 19   github.com/docker/distribution v2.8.1+incompatible // indirect
    19  - github.com/docker/go-connections v0.4.0 // indirect
    20 20   github.com/docker/go-units v0.5.0 // indirect
    21 21   github.com/gogo/protobuf v1.3.2 // indirect
    22 22   github.com/google/go-cmp v0.5.5 // indirect
    skipped 14 lines
  • ■ ■ ■ ■ ■
    main.go
    skipped 11 lines
    12 12   "github.com/iximiuz/cdebug/pkg/cmd"
    13 13  )
    14 14   
     15 +var (
     16 + version = "dev"
     17 + commit = "none"
     18 + date = "unknown"
     19 +)
     20 + 
    15 21  func main() {
    16 22   stdin, stdout, stderr := term.StdStreams()
    17 23   cli := cmd.NewCLI(stdin, stdout, stderr)
    18 24   
    19 25   cmd := &cobra.Command{
    20  - Use: "cdebug [OPTIONS] COMMAND [ARG...]",
    21  - Short: "The base command for the cdebug CLI.",
     26 + Use: "cdebug [OPTIONS] COMMAND [ARG...]",
     27 + Short: "The base command for the cdebug CLI.",
     28 + Version: fmt.Sprintf("%s (built: %s commit: %s)", version, date, commit),
    22 29   }
    23 30   
    24 31   cmd.AddCommand(
    skipped 11 lines
Please wait...
Page is in error, reload to recover