Skip to content

devcontainer-community/nanolayer-go

Repository files navigation

nanolayer-go

A Go-based CLI tool for working with development containers.

Installation

Download the latest binary from the releases page.

Building from Source

go build -o nanolayer .

Usage

Available Commands

  • nanolayer test - Run a test command
  • nanolayer version - Display version information
  • nanolayer --version - Display version information (shorthand)

Examples

# Run the test command
./nanolayer test

# Check version
./nanolayer version
./nanolayer --version

Development

Prerequisites

  • Go 1.25 or later

Building with Version Information

go build -ldflags "\
  -X github.com/devcontainer-community/nanolayer-go/cmd.Version=v1.0.0 \
  -X github.com/devcontainer-community/nanolayer-go/cmd.Commit=$(git rev-parse HEAD) \
  -X github.com/devcontainer-community/nanolayer-go/cmd.Date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
  -o nanolayer .

Releasing

This project uses GoReleaser for building and releasing binaries.

To create a new release:

  1. Tag your commit: git tag -a v1.0.0 -m "Release v1.0.0"
  2. Push the tag: git push origin v1.0.0
  3. GitHub Actions will automatically build and release binaries for Linux (amd64 and arm64)

Testing GoReleaser Locally

# Install GoReleaser
go install github.com/goreleaser/goreleaser@latest

# Test the release process (without publishing)
goreleaser release --snapshot --clean

License

[Add your license here]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published