tools

command
v0.9.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

README

cue-helper

1. Introduction

cue-helper is a tool that automatically generating CueLang code, the code is used to verify parameters in configuration files.

2. Getting Started

You can get started with cue-helper, by the following methods:

  • Build cue-helper from sources

2.1 Build

Compiler Go 1.20+ (Generics Programming Support), checking the Go Installation to see how to install Go on your platform.

Use make cue-helper to build and produce the cue-helper binary file. The executable is produced under current directory.

$ cd kubeblocks
$ make cue-helper

2.2 Run

You can run the following command to start cue-helper once built

reloader Provides a mechanism to implement reload config files in a sidecar for kubeblocks.

Usage of ./bin/cue-helper:
  -boolean-promotion
    	enable using OFF or ON.
  -file-path string
    	The generated cue scripts from file.
  -ignore-string-default
    	ignore string default.  (default true)
  -type-name string
    	cue parameter type name.  (default "MyParameter")
  -output-prefix string
    	prefix, default: ""	


# apps template parameters: https://github.com/apecloud/dbaas-template-paramters

# mysql
./bin/cue-helper --file-path apps-template-paramters/wesql/mysql8.pt --type-name MysqlParameter --boolean-promotion

# pg14
./bin/cue-helper --file-path apps-template-paramters/pg14/postgresql.pt --type-name PGParameter

7. License

Reloader is under the Apache 2.0 license. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL