{"id":23074598,"url":"https://github.com/dexcompiler/envar","last_synced_at":"2025-08-15T16:31:49.626Z","repository":{"id":254103486,"uuid":"845490994","full_name":"dexcompiler/envar","owner":"dexcompiler","description":"Simple binary that prints the value of an environment variable based on your input","archived":false,"fork":false,"pushed_at":"2024-08-28T05:07:00.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-15T12:05:57.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dexcompiler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-21T11:00:43.000Z","updated_at":"2024-11-25T07:45:12.000Z","dependencies_parsed_at":"2024-08-28T06:24:27.287Z","dependency_job_id":"26de62be-2f7c-41c0-8668-a6afe083f545","html_url":"https://github.com/dexcompiler/envar","commit_stats":null,"previous_names":["dexcompiler/print-env-vars"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Fenvar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Fenvar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Fenvar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexcompiler%2Fenvar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dexcompiler","download_url":"https://codeload.github.com/dexcompiler/envar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229930068,"owners_count":18146434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T08:28:51.628Z","updated_at":"2024-12-16T08:28:51.703Z","avatar_url":"https://github.com/dexcompiler.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Envar\n\n## Overview\n\n**Envar** is a simple Rust command-line tool designed to read and display the value of a specified environment variable. This tool provides a quick and easy way to check the value of environment variables on your system, making it especially useful for developers and system administrators who need to debug environment configurations.\n\n## Features\n\n- **Read Environment Variables**: Input the name of any environment variable, and the tool will display its value.\n- **User-Friendly Messages**: If the specified environment variable does not exist or is not set, the tool provides a clear and concise message indicating that the variable was not found.\n- **Cross-Platform Compatibility**: The tool works seamlessly on Windows, Linux, and macOS, making it a versatile utility for different environments.\n- **Simple and Lightweight**: Built with simplicity in mind, this tool has minimal dependencies and a small footprint.\n\n## Build and Installation\n\nTo build the `envar` tool, you need to have Rust installed on your system. You can install Rust using [rustup](https://rustup.rs/):\n\n```sh\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n\nOnce Rust is installed, you can clone this repository and build the project:\n```sh\ngit clone https://github.com/dexcompiler/envar.git\ncd envar\ncargo build --release\n```\nThis will generate the executable in the target/release directory.\n\n## Usage\n### Basic Usage\nTo run the envar tool, simply execute the compiled binary and enter the name of the environment variable you wish to read:\n\n```shell\n./envar \u003cENV_VAR\u003e\n```\nFor example, the command:\n```shell\n./envar PATH\n```\nwill output the value of the \"PATH\" environment variable:\n```shell\nThe value of the environment variable 'PATH' is: /usr/local/bin:/usr/bin:/bin\n```\nIf an environment variable does not exist or is not set, the tool will display a message indicating that the variable was not found:\n```shell\nThe environment variable 'NON_EXISTENT_VAR' was not found.\n```\n\n### Help Option\nYou can also display usage instructions and examples by using the --help or -h option:\n```shell\n./envar --help\n```\nThis will display the following help message:\n```shell\nUsage: envar \u003cENV_VAR\u003e\nRetrieve the value of the specified environment variable.\n\nOptions:\n  -h, --help     Show this help message\n\nExamples:\n  envar PATH     Retrieve the value of the 'PATH' environment variable\n```\n\n## Contributing\nContributions are welcome! If you have suggestions for improving the tool or adding new features, feel free to open an issue or submit a pull request.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexcompiler%2Fenvar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdexcompiler%2Fenvar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexcompiler%2Fenvar/lists"}