Git Product home page Git Product logo

gandalf's Introduction

Gandalf

Gandalf is a script manager for Unix. It aims to provide a console interface to create and use scripts without polluting the /usr/local/bin folder.

In its current state, it arguably doesn't provide any read advantage over simply dropping script files in /usr/local/bin, but it's a fun side project.

Installation

There is currently no way to install Gandalf from any package manager or similar system. If you want to give it a try, however, you can always clone this reposiotry and create a symbolic link to gandalf.py in /usr/local/bin or any other folder included in your PATH.

Usage

Gandalf provides five basic commands:

Create

Creates a new script file.

$ gandalf create {script-name} [-d {description}] [-e {editor}]
  • script-name: the name that will be used to invoke this script.
  • description: an optional string that will be provided when listing the script.
  • editor: an optional editor name that will be used when editing the script file. Default is nano.

Edit

Updates an existing script.

$ gandalf edit {script-name} [-e {editor}]
  • script-name: the name of the script that will be edited.
  • editor: an optional editor name that will be used when editing the script file. Default is nano.

List

Lists all existing scripts. If a description argument has been provided when creating a script, it will be listed next to its name.

$ gandalf list

Remove

Removes and existing script.

$ gandalf remove {script-name}
  • script-name: the name of the script that will be removed.

Run

Executes a given script.

$ gandalf run {script-name} [-a {arguments}]
  • script-name: the name of the script that will be executed.
  • arguments: an optional list of arguments that will be provided to the script when invoked.

As a shortcut, the run command will be invoked when no command is provided.

$ gandalf {script-name} [-a {arguments}]

This will execute the script script-name.

gandalf's People

Contributors

avalander avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.