Shared libraries used in the Raystack ecosystem. Use at your own risk. Breaking changes should be anticipated.
To use, run the following command:
go get github.com/raystack/salt
Package for adding audit events in your applications.
Cobra based cli helper which allows adding command groups, provides custom help and usage functions.
var cmd = &cli.Command{
Use: "exec <command> <subcommand> [flags]",
SilenceUsage: true,
SilenceErrors: true,
Annotations: map[string]string{
"group": "core",
"help:learn": "Learn about the project",
},
}
cmdx.SetHelp(cmd)
cmd.AddCommand(cmdx.SetCompletionCmd("exec"))
cmd.AddCommand(cmdx.SetHelpTopicCmd("environment", envHelp))
cmd.AddCommand(cmdx.SetHelpTopicCmd("auth", authHelp))
cmd.AddCommand(cmdx.SetRefCmd(cmd))
Viper abstractions which provides functions for loading config files for the application.
Postgres based database abstractions for creating a client and running migrations.
Logger for easy application loggging.
Command line printer for CLI based applications.
GRPC based server abstraction.
Helper functions for working with terminal.
Helper functions for fetching github latest and outdated releases.