Skip to content

YMC-GitHub/envedit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envedit

get/set os environment variables in rust.

Contents

  1. Usage
  2. Dependencies
  3. License

Usage

Build envedit with cargo build --release and move the executable from target/release/envedit(.exe) to a directory with environment access. After this you can use envedit from the command line:

envedit set key value
envedit get key

Note: if you are in china and using scoop + my scoop_bucket_cn. it may be good for you:

# use my bucket of scoop for China and name it as zero
scoop bucket add zero https://github.com/ymc-github/scoop_bucket_cn

# install envedit from bucket named zero
scoop install zero/envedit

Examples

set "OLLAMA_MODELS" to "G:\data\LLM":

envedit set OLLAMA_MODELS "G:\data\LLM"

to get "OLLAMA_MODELS" 's value

envedit get OLLAMA_MODELS

Dependencies

envedit uses the following libraries:

  • clap - Command line argument parsing.
  • winreg - Rust bindings to MS Windows Registry API.

Build-Dependencies

  • winres - Create and set windows icons and metadata for executables.

License

envedit is released under the MIT License:

See LICENSE.txt for a full copy of the license text.

About

get/set os environment variables in rust for window

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages