Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configmount

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configmount

Configmount mounts directories containing configuration files (augtools compatible files, yaml-files) as directories, so that every configuration value is accessible as file.

  • 0.0.38rc1
  • Source
  • PyPI
  • Socket score

Maintainers
1

The configmount project

Config is a tool to mount configuration files into your filesystem, so that you can navigate through the configuration hierarchy and access its values like files.

Example

Create a configuration directory for testing via mkdir ~/etc and place the following yaml file into it:

~/etc/config.yml

group:
  key: value
  another group:
    key: value

Now create a mount directory /mnt/etc and mount the configuration directory into it.

mkdir /mnt/etc
configmount mount --root ~/etc /mnt/etc

You should be able to navigate into the /mnt/etc directory and see the file key and the directory another group. Now you can change the configuration value of key like:

cd /mnt/etc/config.yml
echo new value >key

The changes are written back into the file as soon as you unmount the directory ~/etc from the mountpoint /mnt/etc via:

fusermount -u /mnt/etc

Finally cat ~/etc/config.yml should give you the modified file.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc