Skip to content

albertocavalcante/cli

Repository files navigation

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