Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/embulk/embulk-input-command
Command-line file input plugin for Embulk
https://github.com/embulk/embulk-input-command
embulk embulk-plugin
Last synced: about 1 month ago
JSON representation
Command-line file input plugin for Embulk
- Host: GitHub
- URL: https://github.com/embulk/embulk-input-command
- Owner: embulk
- License: apache-2.0
- Created: 2015-02-18T00:07:06.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T02:02:14.000Z (7 months ago)
- Last Synced: 2024-10-28T14:16:48.503Z (about 2 months ago)
- Topics: embulk, embulk-plugin
- Language: Java
- Homepage: https://www.embulk.org/
- Size: 156 KB
- Stars: 7
- Watchers: 14
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# embulk-input-command
Command file input plugin for Embulk: runs a command and reads data from its stdout (or stderr).
## Overview
* **Plugin type**: file input
* **Resume supported**: yes (no parallelism)## Configuration
- **command**: command line (string, required)
- **pipe**: stdout or stderr (string, default: stdout)The **command** is exected using a shell (`sh -c` on UNIX/Linux, `PowerShell.exe -Command` on Windows). Therefore, it can include pipe (`|`), environment variables (`$VAR`), redirects, and so on.
## Example
```yaml
in:
type: command
command: echo "a,c,c" && echo "1,2,3" && echo "10,11,12" | grep -v 10
```For Maintainers
----------------### Release
Modify `version` in `build.gradle` at a detached commit, and then tag the commit with an annotation.
```
git checkout --detach main(Edit: Remove "-SNAPSHOT" in "version" in build.gradle.)
git add build.gradle
git commit -m "Release vX.Y.Z"
git tag -a vX.Y.Z
(Edit: Write a tag annotation in the changelog format.)
```See [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for the changelog format. We adopt a part of it for Git's tag annotation like below.
```
## [X.Y.Z] - YYYY-MM-DD### Added
- Added a feature.### Changed
- Changed something.### Fixed
- Fixed a bug.
```Push the annotated tag, then. It triggers a release operation on GitHub Actions after approval.
```
git push -u origin vX.Y.Z
```