Giter Site home page Giter Site logo

fititnt / hxltm-extras-action Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12 KB

[non-production-ready] Ad hoc GitHub Actions for non-HXL / non-HXLTM cli tools. See https://github.com/fititnt/hxltm-action/issues/6

License: The Unlicense

Dockerfile 41.88% Shell 58.12%

hxltm-extras-action's Introduction

hxltm-extras-action

[non-production-ready] Ad hoc GitHub Actions for non-HXL / non-HXLTM cli tools. See fititnt/hxltm-action#6


Table of Contents


Documentation

This documentation explains the action.yml and entrypoint.sh.

Baseline inputs

Baseline inputs, together with Environment variables, are enough to abstract how to use the underlying command line tools.

bin

Required The executable to run.

Parameter examples:

  • csvstat
  • hxltmdexml (or .github/hxltm/hxltmdexml.py) (*)

args

Arguments passed for the program defined by bin parameter. Default: undefined.

Parameter examples:

  • --help
  • -v
  • --sheet 7 (Select sheet from a Excel workbook (1 is first sheet))

infile

The input file for the program defined by bin parameter Note on non use of pipelines. Default: undefined.

Parameter examples:

  • fontem.hxl.csv
  • fontem.tbx

outfile

The output file for the program defined by bin parameter Note on non use of pipelines. Default: undefined.

Parameter examples:

  • objectivum.tbx
  • objecricum.hxl.csv

Environment variables

Reusable defaults

The way GitHub Actions steps works, environment variables can be both passed at the entire job level or at specific tasks. One implication of action.yml and entrypoint.sh is that the use of environment variables at job level can be used to create default values for potentially repetitive values for each individual task.

TODO: test this potential implication and document it.

Syntactic sugar inputs

This section shows some syntactic sugar (or intentional syntactic saccharins) for what could be done using other ways, often with args parameter. Some of these only use English for what hxltm cli tools use Latin.

syntactic-sugar-not-implemented

None implemented on the current version. Use Baseline inputs and Environment variables.

hxltm-extras-action tools

POSIX commands

Name Description
comm Select the lines common to two sorted files or the lines contained in only one of them. (Manual: man 1 comm on your system, GNU, FreeBSD.)
cut Select portions of each line in one or more files. (Manual: man 1 cut, GNU, FreeBSD.)
grep Select the lines that match or do not match a pattern from one or more files. (Manual: man 1 grep, GNU, FreeBSD.)
join Take two files sorted by a common field and join their lines on the value of that field. Lines with values that do not appear in the other file are discarded. (Manual: man 1 join, GNU, FreeBSD.)
paste Combine several consecutive lines in a text file into one. (Manual: man 1 paste, GNU, FreeBSD.)
sort Sort lines by key fields. (Manual: man 1 sort, GNU, FreeBSD.)
uniq Find or remove repeated lines. (Manual: man 1 uniq, GNU, FreeBSD.)

Documentation source: dbohdan/structured-text-tools

Other commands installed

  • bash (as 2021-11-09: GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu))
  • diff (as 2021-11-09: diff (GNU diffutils) 3.7)
  • git (as 2021-11-09: git version 2.30.2)
  • sed (as 2021-11-09: sed (GNU sed) 4.7)
  • unzip (as 2021-11-09: UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.)
  • tar (as 2021-11-09: tar (GNU tar) 1.34)
  • xz (as 2021-11-09: xz (XZ Utils) 5.2.5)

csvkit

csv-diff

miller

rows

translate-toolkit

License

Public Domain

To the extent possible under law, Emerson Rocha and non anonymous collaborators have waived all copyright and related or neighboring rights to this work to Public Domain.

Optionally, the BSD Zero Clause License is also one explicit alternative to the Unlicense as an older license approved by the OSI:

SPDX-License-Identifier: Unlicense OR 0BSD

hxltm-extras-action's People

Contributors

fititnt avatar

Watchers

 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.