Giter Site home page Giter Site logo

cofre's Introduction

Cofre - Chest box for tools

Cofre is a chest, not body part but box, in Spanish. This project will be a chest box of tools what I need / use in my daily life.

Prerequisite

This project requires Sagittarius version 0.9.11.

Some commands require higher version. See the command overview section for more details.

Try with the latest Sagittarius

You can use scheme-env. to install the latest version of Sagittarius like this:

scheme-env install sagittarius@head

Then you can try the tool like this (in the same directory as this file is located):

SAGITTARIUS="scheme-env run sagittarius@head --" ./cofre-cli

Basic usage

Executing cofre-cli with below format is the basic usage:

cofre-cli $command $operation $arguments ...

$command specify the executing command, such as encode.
$operation is command specific operation, e.g. base64 for encode.
$arguments ... are also command specific arguments.

You can see the usage text when you type random $operation like this:

cofre-cli encode dummy

Command chain

By using $ separator, commands can be chained. Below is a simple example.

cofre-cli encode base64 text $ decode base64

The result of the previous command is appended to the next command. If the command takes argument, i.e. with hyphon, then the order of the argument can be reordered like this:

cofre-cli json diff @file1.json @file2.json $ json patch {} -p

The above takes the result of the JSON diff command is appended the next JSON patch command so the -p argument takes the result.

Supporting commands

Below are the supporting commands. The detail usage can be shown with above random operation thing.

encode

Provides encoding operation, such as Base64

decode

Provides decoding operation, such as Base64

caesar

Providing Caesar cipher operation.

digest

Providing digest operation, such as SHA-256

json

Providing JSON operation, such as JMesPath query

keystore

Providing keystore operations for PKCS12, JKS and JCEKS. It's a convenient CLI for (security keystore)

The list operation of this command requires Sagittarius 0.9.12 or higher.

uuid

Providing UUID generation

cofre's People

Contributors

ktakashi avatar

Watchers

 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.