Skip to content

Commit

Permalink
docs: Fix setup in README (tnarg#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunz authored Apr 15, 2022
1 parent 212a9d3 commit b636599
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# CUE Rules for Bazel

## Rules

* [cue_export](#cue_export)
* [cue_library](#cue_library)

## Overview

These build rules are used for building [CUE][cue] projects with Bazel.

[cue]: https://cuelang.org/

## Setup

To use the CUE rules, add the following to your
`WORKSPACE` file to add the external repositories for CUE, making sure to use the latest
published versions:
Expand All @@ -24,17 +27,17 @@ http_archive(
)

load("@com_github_tnarg_rules_cue//cue:deps.bzl", "cue_register_toolchains")
load("@com_github_tnarg_rules_cue//:go.bzl", cue_go_modules "go_modules")
load("@com_github_tnarg_rules_cue//:go.bzl", cue_go_modules = "go_modules")

cue_go_modules()

cue_register_toolchains()
```


## Build Rule Reference

<a name="reference-cue_export"></a>

### cue_export

```py
Expand Down

0 comments on commit b636599

Please sign in to comment.