From d53e123b7c5a5cde9a352e67ad71d6816ce33719 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Fri, 18 Aug 2023 23:03:19 -0400 Subject: [PATCH] moving the echo command before it gets hairy --- cmd/{ => echo}/BUILD.bazel | 10 +++++----- cmd/{echo.go => echo/server.go} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename cmd/{ => echo}/BUILD.bazel (54%) rename cmd/{echo.go => echo/server.go} (100%) diff --git a/cmd/BUILD.bazel b/cmd/echo/BUILD.bazel similarity index 54% rename from cmd/BUILD.bazel rename to cmd/echo/BUILD.bazel index 23bc1f0..14acf00 100644 --- a/cmd/BUILD.bazel +++ b/cmd/echo/BUILD.bazel @@ -1,14 +1,14 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( - name = "cmd_lib", - srcs = ["echo.go"], - importpath = "code.ndumas.com/ndumas/gomud/cmd", + name = "echo_lib", + srcs = ["server.go"], + importpath = "code.ndumas.com/ndumas/gomud/cmd/echo", visibility = ["//visibility:private"], ) go_binary( - name = "cmd", - embed = [":cmd_lib"], + name = "echo", + embed = [":echo_lib"], visibility = ["//visibility:public"], ) diff --git a/cmd/echo.go b/cmd/echo/server.go similarity index 100% rename from cmd/echo.go rename to cmd/echo/server.go