Skip to main content

The CLI to make managing your config files across systems easier.

Project description

modrc

PyPI Version PyPI Status License Tests Status Codacy Badge

The CLI to make managing your config files across systems easier.

Description

ModRC makes it easy to install, manage, and sync your dotfiles or any other config across all your computers.

Installation

Installation of ModRC is easy, install it directly from PyPI.

$ pip install modrc

If you want to edit the installed code or PyPI is not available, setuptools works for installation.

$ pip install -e .

After installing with pip, run the installation command.

$ modrc setup install

This will create the ModRC directory at ~/.modrc.

Usage

ModRC consists of a number of sub-commands to manage your installatio and files. Not all commands are available/working as this project is still in Alpha. This list acts as a guideline for development, not an official list of forthcoming commands.

Setup

modrc setup
modrc setup install [(-e|--editor) <editor>] [(-u|--url) <url>] [(-p|--package) <package>] [(-c|--compile)] [(-s|--auto-sync)]
modrc setup uninstall

Compile

modrc compile [--package <package> [--file <file>]]

Package

modrc package add [(-d | --default)] [--url <url>] <package>
modrc package remove [-y] <package>
modrc package edit [<package>]
modrc package default <package>
modrc package sync [<package>]

File

modrc file add <file> [<package>]
modrc file remove [-y] <file> [<package>]
modrc file edit [((-c|--compile)|(-n|--no-compile))] <file> [<package>]

Filter

modrc filter add <filter> <file> [<package>]
modrc filter remove [-y] <filter> <file> [<package>]
modrc filter edit <filter> <file> [<package>]

Chunk

modrc chunk add <chunk> [<package>]
modrc chunk remove [-y] <chunk> [<package>]
modrc chunk edit <chunk> [<package>]

Testing

Testing is slightly complicated since ModRC creates and deletes files in a user's home directory. To avoid modifying files in your home directory, it is advised to run the tests in a container. To run the tests in an isolated Docker container, use the following command. It will mount the code as a volume so you dont have to re-compile the container every time the tests run.

$ ./run_tests.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modrc-0.4.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

modrc-0.4.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file modrc-0.4.1.tar.gz.

File metadata

  • Download URL: modrc-0.4.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for modrc-0.4.1.tar.gz
Algorithm Hash digest
SHA256 940c8d79088ba69b8688e7533f95cf79e4249ed2687a09ada3597d90b330ab0d
MD5 68fe0377617ad4b1dd937718eb3c5280
BLAKE2b-256 d53867936f8f692a598460f8b0b8ac85607dfee00b998c2d94cacaef924da903

See more details on using hashes here.

File details

Details for the file modrc-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: modrc-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for modrc-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e9a2c20ea695aaa776b3d6d1d90b6d3df576ecd76339138dca9d1704c6d5303
MD5 0066c7e7e89fad8db0a0822599d6ef7f
BLAKE2b-256 97861ed7c60cdc284aa427fa49a48b355d89fa5a1637da08169ed5896536fc27

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page