Giter VIP home page Giter VIP logo

kangaru's Introduction

Kangaru - A Ruby Framework for Building Command Line Applications

Kangaru is an open-source framework written in Ruby for building powerful and efficient command line applications. This project aims to make it easier for developers to create complex CLI programs with minimal effort, by providing a set of useful tools and libraries in a configurable ecosystem.

Note: This software is currently in beta mode, meaning it may contain bugs and be subject to changes. Please exercise caution when using this software and report any issues you encounter. The first production-ready release of Kangaru will be version 1.0.0.

Features

  • MVC architecture drawing heavy inspiration from Rails
  • ERB rendering of view templates with embedded Ruby capabilities
  • SQLite and Sequel integration allowing databases to be created and used by your CLI
  • A powerful command parser that routes terminal requests to their controller
  • Zeitwerk-based autoloading of gem files
  • Simple installation, integration and configuration

Quick Setup

It is recommended to create a new Ruby gem for each Kangaru CLI application. This can be executed through bundler with the following command:

bundle gem gem_name

Next add Kangaru to your Gem's Gemfile and bundle install:

# Gemfile
gem "kangaru"
bundle install

Kangaru's set up is bundled up into a single Ruby module that must be extended from the entry file for your Gem application. Conventionally this will be the Ruby file at /gem_name/lib/gem_name.rb, where gem_name is the name of the application specified with the bundle gem command.

For example:

# gem_name/lib/gem_name.rb
require "kangaru"

module GemName
  extend Kangaru::Initialiser
end

This extension will set up Kangaru in the context of your Gem, including setting up processes such as the autoloader and config.

Documentation

  • TBC

kangaru's People

Contributors

apexatoll avatar

Stargazers

Jo Potts avatar Tom Boyd avatar Greg Joy avatar

Watchers

 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.