Skip to main content

manage scripts from different sources

Project description

Scriptler allows you to manage scripts from different sources in one place with a simple configuration file.

installation

As usual, use pip to install:

$ pip install --user scriptler

usage

First off, create a configuration file in ~/.config/scriptler/config.yml:

scriptler:
    script_dir: /home/aljosha/.local/share/scriptler

scripts:
    proxy-foxy:
        path: ~/git/scripts/bash/proxy-foxy
    socksme:
        path: ~/git/scripts/bash/socksme
    swap:
        path: bash/swap
        source: afriemann/scripts.git

sources:
    afriemann/scripts.git:
        branch: master
        url: github.com/AFriemann/scripts

The only thing of note is that the section scripts is reserved for the actual scripts. Repository sections may be named however you please. The scriptler section is not required (~/.local/share/scriptler is the default) but should be something you have write access to and can add to your $PATH.

To install the scripts, simply run:

$ scriptler update
installing socksme
installing swap
installing proxy-foxy
removing unmanaged file foobar

This will also remove unmanaged files (those that you removed from your configuration file/never added).

And to remove them again:

$ scriptler remove
removing swap
removing proxy-foxy
removing socksme

To get a nice list of currently installed scripts:

$ scriptler status
config file  ~/.config/scriptler/config
script dir   ~/.local/share/scriptler

script     managed    installed
---------  ---------  -----------
swap       yes        no
proxy-foxy yes        yes
socksme    yes        yes
foobar     no         yes

todo

  • scriptler will ruthlessly reinstall files. Right now I don’t care, but it would probably be better to change that

  • the only sources supported right now are github and local files

  • write some tests to ensure functionality

license

“THE BEER-WARE LICENSE” (Revision 42):

<aljosha.friemann@gmail.com> wrote this file.  As long as you retain this
notice you can do whatever you want with this stuff. If we meet some day,
and you think this stuff is worth it, you can buy me a beer in return.

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

scriptler-1.1.1.tar.gz (5.6 kB view hashes)

Uploaded Source

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