Code Monkey home page Code Monkey logo

compan's Introduction

compan

Community "Package Manager" for Guile

What is compan?

Compan is a tool for automatically fetching Guile modules from remote Mercurial/Git repositories. It provides Guile with the load-modules macro that can be used in the following ways:

;; clone the repository and load (lib) module from the top level:
(load-modules ("https://bitbucket.org/panicz/dogma" (lib)))

;; as above, but load modules from "libraries" directory:
(load-modules (("https://github.com/panicz/pamphlet" "libraries") (pamphlet)))

;; one can also fix on a particular tag/branch/commit:
(load-modules (("https://bitbucket.org/panicz/dogma" "." "3884445191c2") (lib)))

So, in general, the syntax of a single entry in load-modules takes one of the following forms:

((url directory branch) modules ...)
((url directory) modules ...)
(url modules ...)

What the invocation of load-module actually does is that it clones the repository to the ~/.guile.d/compan/ directory (unless already cloned), extends the Guile's load path to be able to load modules from the specified directory, loads the module, and then runs a separate thread to update the repository.

Installation

In order to install Compan, just copy the compan.scm file somewhere to your Guile load path, and run (use-modules (compan)) from within Guile.

Note that you need to have Mercurial installed for the Compan to work. If you want to be able to fetch Git repositories, you'll need to install Hg-Git extension to Mercurial.

compan's People

Contributors

panicz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arnebab fluxbios

compan's Issues

What layout does compan expects?

I am working for an interface for guildhall (http://guildhall.hypermove.net) and was wondering about your project. This seems neat.

What layout does compan expects to be able to use a given repository?

Is it possible to provide the branch or tag information to hg so that I fetch a particular revision of the project?

Tx!

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.