Skip to content

OpenAF/oJob.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oJob.io

YAMLs JSONs SHs BATs

Service providing easy-to-access oJobs for daily routines.

How to access

To access you just need to execute:

ojob ojob.io

Then you can start writing a category or name and/or hit tab for auto-complete for the available jobs under that site. If the corresponding ojob has parameters they will be asked. Aftewards it will provide you the full command-line to execute the same command without the interactive interface and proceed to execute the selected ojob with the provided arguments.

Command-line examples

Hello world:

ojob ojob.io/hello/world

Host latency:

ojob ojob.io/net/latency host=ojob.io port=443

How to control the output

For jobs following the standard output practice you can add an extra argument, "__format", to force the output to be presented in a different way:

For list/array results

  • CSV - __format=csv for csv like format.
  • YAML - __format=yaml for output in yaml.
  • JSON - __format=json for output in json.
  • CJSON - __format=cjson for colored output in json.
  • NDJSON - __format=ndjson for ndjson output.
  • SLON - __format=slon for slon output.
  • CSLON - __format=cslon for colored slon output.
  • PRETTYJSON - __format=pretty json for formatted json output.
  • MAP - __format=map for output in a map tabular human-readable form.
  • TABLE - __format=table for output in a table human-readable form.
  • CTABLE - __format=ctable for output in a table with row colors and word-wrap.
  • STABLE - __format=stable for output in a table with row dividers and word-wrap.
  • TREE - __format=tree for output in tree ascii format.
  • HTML - __format=html for output in HTML format.
  • PM - __format=pm for output into a global variable __pm._list.

For map/object results

  • YAML - __format=yaml for output in yaml.
  • JSON - __format=json for output in json.
  • CJSON - __format=cjson for colored output in json.
  • SLON - __format=slone for slon output.
  • CSLON - __format=cslon for colored slon output.
  • PRETTYJSON - __format=pretty json for formatted json output.
  • MAP - __format=map for output in a map tabular human-readable form.
  • XML - __format=xml for output in XML format.
  • TREE - __format=tree for output in tree ascii format.
  • HTML - __format=html for output in HTML format.
  • PM - __format=pm for output into a global variable __pm._map.

For string results

  • TEXT - __format=Text for output in string text representation (if possible).
  • MD - __format=md for output with markdown parsing (if possible).
  • HUMAN - __format=human for output in the raw human-readable representation.
  • PM - __format=pm for output into a global variable __pm.result.

About

Generic service to provide easy-to-access oJobs for daily routines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published