Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.14 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.14 KB

CLI

I don't know what is CLI will be yet, for now it will serve just as a sample boilerplate

Running

bazel run //src:cli

Build

Bazel

This uses Bazel as its build tool. It's a go project, which relies on rules_go, gazelle and bzlmod.

Reference

Bazel Tools

Buildifier
go install github.com/bazelbuild/buildtools/buildifier@latest
Buildozer
go install github.com/bazelbuild/buildtools/buildozer@latest

Sample Usage

buildozer 'use_repo_remove @gazelle//:extensions.bzl go_deps com_github_spf13_cobra' //MODULE.bazel:all

Adding third party dependencies

For example, in order to add cobra, run:

make go-get DEP=github.com/spf13/cobra@latest