Skip to content

Commit

Permalink
cli: new sub-packages clisqlclient and clisqlshell.
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Jul 10, 2021
1 parent 0a48b0b commit a80a0d5
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/cli/clisqlclient/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "clisqlclient",
srcs = ["doc.go"],
importpath = "github.com/cockroachdb/cockroach/pkg/cli/clisqlclient",
visibility = ["//visibility:public"],
)
15 changes: 15 additions & 0 deletions pkg/cli/clisqlclient/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2021 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

// Package clisqlclient contains code common to all CLI commands
// that establish SQL connections, including but not exclusively
// the SQL interactive shell. It also supports commands like
// 'cockroach node ls'.
package clisqlclient
8 changes: 8 additions & 0 deletions pkg/cli/clisqlshell/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "clisqlshell",
srcs = ["doc.go"],
importpath = "github.com/cockroachdb/cockroach/pkg/cli/clisqlshell",
visibility = ["//visibility:public"],
)
17 changes: 17 additions & 0 deletions pkg/cli/clisqlshell/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2021 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

// Package clisqlshell contains the code that powers CockroachDB's
// interactive SQL shell.
//
// Note that the common code that is shared with other CLI commands
// that are not interactive SQL shells but establish a SQL connection
// to a server should be placed in package clisqlclient instead.
package clisqlshell

0 comments on commit a80a0d5

Please sign in to comment.