Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 674 Bytes

README.md

File metadata and controls

49 lines (30 loc) · 674 Bytes

cli.tar

CLI tool that creates a TAR file from the list of inputs.

Also provides custom Bazel rules pkg_tar and file_size

Prerequisites

Install bazelisk:

go install github.com/bazelbuild/bazelisk@latest
ln -s "$GOPATH/bin/bazelisk" /usr/local/bin/bazel

Bazel targets

File size custom rule:

bazel run //rules:size

pkg_tar custom rule:

bazel build //rules:archive

CLI TAR go binary:

bazel run //cmd/tar -- output.tar input1 input2 input3

Linters

bazel run //:buildifier

Tests

bazel test //rules:pkg_tar_test