github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/cmd/cockroach/main.go (about)

     1  // Copyright 2014 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  // This is the default entry point for a CockroachDB binary.
    12  //
    13  // The ccl hook import below means building this will produce CCL'ed binaries.
    14  // This file itself remains Apache2 to preserve the organization of ccl code
    15  // under the /pkg/ccl subtree, but is unused for pure FLOSS builds.
    16  package main
    17  
    18  import (
    19  	_ "github.com/cockroachdb/cockroach/pkg/ccl"        // ccl init hooks
    20  	_ "github.com/cockroachdb/cockroach/pkg/ccl/cliccl" // cliccl init hooks
    21  	"github.com/cockroachdb/cockroach/pkg/cli"
    22  	_ "github.com/cockroachdb/cockroach/pkg/ui/distccl" // ccl web UI init hook
    23  )
    24  
    25  func main() {
    26  	cli.Main()
    27  }