zeus

command module
v0.0.0-...-5a0a5be Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 5 Imported by: 0

README

Zeus

Zeus is a lightweight command-line tool for managing environment variables. It allows you to set, get, list, remove, or clear environment variables stored in a SQLite database. This tool is designed to simplify working with environment variables in your development environment.

Features

  • Set an environment variable with a key and value.
  • Get the value of an environment variable by specifying its key.
  • Rename an environment variable.
  • List all environment variables.
  • Remove an environment variable by specifying its key.
  • Clear all environment variables.

Installation

To install Zeus, you can use the go get command:

go install github.com/IsaqueGeraldo/zeus@latest

Usage

Zeus provides several subcommands to interact with environment variables:

Set an Environment Variable
zeus set [key] [value]

Example:

zeus set API_KEY my-secret-key
Get the Value of an Environment Variable
zeus get [key]

Example:

zeus get API_KEY
Rename an Environment Variable
zeus rename [oldkey] [newkey]

Example:

zeus rename OLD_KEY NEW_KEY
List All Environment Variables
zeus environ
Remove an Environment Variable
zeus unset [key]

Example:

zeus unset API_KEY
Clear All Environment Variables
zeus clearenv
Search for Environment Variables
zeus find [key]

Example:

zeus find API

Database

Zeus stores environment variables in a SQLite database named odin.db in the current working directory. It will be created automatically if it doesn't exist.

Note

  • Environment variable keys are case-insensitive and will be converted to uppercase.
  • Only alphanumeric characters are allowed in keys; any other characters will be replaced with underscores.

License

Zeus is released under the MIT License. See LICENSE for more information.


Feel free to contribute to this project or report any issues on GitHub.

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