Skip to main content

A command line interface for coons.

Project description

COONS-CLI

A command line tools to interact with a coons instance.

Installation

Using PIP

pip install coons-cli

Configuration

You can set your generated personal token in a environment variable COONS_TOKEN.

Commands

Once the coons-cli package is installed you can run coons --help command.

Get

Usage

Usage: coons get [OPTIONS] SIZE

  Get a flat list of object from a coons instance.

Options:
  -q, --query TEXT
  --help            Show this message and exit.

Add

Usage

Usage: coons add [OPTIONS] INPUT

  Create object form a text file.

Options:
  --help  Show this message and exit.

Input file

The input file is an ascii(text) file of the form:

Informatic:interest
    development -> Coons:project
        realisation -> coons:web service
            dependency -> invenio:software
            dependency -> flask:software
        realisation -> coons-ui:software
            dependency -> angular:software
        realisation -> coons-cli:software
            dependency -> poetry:software
    skills -> python:language
        example -> misc:snippet
        documentation -> python:web page
    skills -> typescript:language

Each line is an object of the form name:type. The predicate -> name:type represents a link.

A sample of file can be found here.

Delete

Usage

Usage: coons delete [OPTIONS] QUERY

  Delete object from a query, confirmation is required.

Options:
  --help  Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coons-cli-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

coons_cli-0.1.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page