| 1 |
# Copyright 2022 Google LLC |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
| 16 |
|
| 17 |
package( |
| 18 |
licenses = ["notice"], # Apache 2.0 |
| 19 |
) |
| 20 |
|
| 21 |
go_binary( |
| 22 |
name = "main", |
| 23 |
embed = [":go_default_library"], |
| 24 |
importpath = "github.com/google/cel-go/repl/main", |
| 25 |
visibility = ["//visibility:public"], |
| 26 |
) |
| 27 |
|
| 28 |
go_library( |
| 29 |
name = "go_default_library", |
| 30 |
srcs = ["main.go"], |
| 31 |
importpath = "github.com/google/cel-go/repl/main", |
| 32 |
visibility = ["//visibility:private"], |
| 33 |
deps = [ |
| 34 |
"//repl:go_default_library", |
| 35 |
"@com_github_chzyer_readline//:go_default_library", |
| 36 |
], |
| 37 |
) |