Giter Club home page Giter Club logo

batch-rs's Introduction

batch-rs

Simple CLI-tool for batch-intake: list batches, start a batch, etc.

For users

  1. Download the latest version for your architecture from "Releases".
  2. Fill in the required values in the .env file (example in .env.example) and export the variables:
$ export $(grep -v '^#' .env | xargs)
  1. Check out the possibilities with:
$ ./batch-rs -h
batch-rs 0.1.1

USAGE:
    batch-rs <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    help         Print this message or the help of the given subcommand(s)
    list         List all batches in the database
    start        Start a batch. This will send out a so called "watchfolder-message" for every
                     pair in the batch. If an - optional - local_id is provided, then only this item
                     will be started
    transform    TODO: Transform metadata for a batch
    upload       TODO: Upload a batch. This adds the batch and it's records to the database and
                     uploads the sidecars to the FTP-server
    vars         TODO: Display or set the batch-variables

Help

Help for any of the subcommands can be invoked as such: $ ./batch-rs help <SUBCOMMAND>. For instance:

$ ./batch-rs help start

Output:

batch-rs-start
Start a batch. This will send out a so called "watchfolder-message" for every pair in the batch. If
an - optional - local_id is provided, then only this item will be started

USAGE:
    batch-rs start [OPTIONS] <BATCH_ID>

ARGS:
    <BATCH_ID>    Batch ID (formerly "name"): eg, 'QAS-BD-OR-123abc-2022-01-01-00-00-00-000'
                  There should be one and only one batch found via its ID

OPTIONS:
    -h, --help                   Print help information
    -l, --local-id <LOCAL_ID>    Local ID: provide a local ID of the item that should be ingested

Subcommands

List batches

$ ./batch-rs list

Start batches

$ ./batch-rs start [OPTIONS] <BATCH_ID>

For developers

Prerequisites

Build

  • Clone this repository.
  • Build with cargo build.

batch-rs's People

Contributors

maartends avatar spacid avatar tibo-ulens 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.