GithubHelp home page GithubHelp logo

joearrowood-e99965 / jilutil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mscribellito/jilutil

0.0 0.0 0.0 77 KB

AutoSys JIL command line utility

License: MIT License

Python 98.66% PowerShell 1.34%

jilutil's Introduction

JIL Utility

AutoSys JIL command line utility

This utility provides functionality to:

  • Export to CSV - makes jobs easier to read for non-technical people
  • Format JIL - aids in comparison of jobs in different environments
  • Output to console - allows quick inspection of jobs contained within

What is JIL?

Job Information Language (JIL) is a scripting language that lets you define and modify assets such as jobs, global variables, machines, job types, external instances, and blobs.

Basic Usage

Basic usage for working with a JIL file.

usage: jilutil.py [-h] [-e] [-f] [-n] [-o] [-r] [-v] path

Positional Arguments

  • path - path to JIL source file

Optional Arguments

  • -h, --help - show this help message and exit
  • -e, --export - Exports jobs contained in the JIL source file in ascending order by name to a CSV file.
  • -f, --format - Formats jobs contained in the JIL source file in ascending order by name.
  • -o, --output - Outputs jobs contained in the JIL source file in ascending order by name to standard out.
  • -a, --attributes - Attributes to list when outputting jobs (ex: job_type,box_name).
  • -n, --new - Formats as new file.
  • -r, --reverse - Sorts jobs in descending order by name.
  • -v, --verbose - Increases output verbosity.

Functionality

Export

Exports jobs contained in the JIL source file in ascending order by name to a CSV file.

Export jobs contained in JIL file: python -m jilutil sample.jil -e

Format

Formats jobs contained in the JIL source file in ascending order by name.

Format JIL file in place: python -m jilutil sample.jil -f

Format JIL file as new file: python -m jilutil sample.jil -f -n

Output

Outputs jobs contained in the JIL source file in ascending order by name to standard out.

Output jobs contained in JIL file: python -m jilutil sample.jil -o

SAMPLE_BOX_JOB
SAMPLE_CMD_JOB_1
SAMPLE_CMD_JOB_2

Output jobs contained in JIL file with extra attributes: python -m jilutil sample.jil -o -a box_name,job_type,condition

SAMPLE_BOX_JOB -> box_name:  ; job_type: BOX ; condition:
SAMPLE_CMD_JOB_1 -> box_name: SAMPLE_BOX_JOB ; job_type: CMD ; condition:
SAMPLE_CMD_JOB_2 -> box_name: SAMPLE_BOX_JOB ; job_type: CMD ; condition: s(SAMPLE_CMD_JOB_1)

Executable

Stand alone executable (no Python required) can be compiled using pyinstaller and the build.ps1 script included. Executable will be placed in "dist" folder.

jilutil's People

Contributors

mscribellito 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.