bilderhic
Bilderhic is a smart and simple command tool for automatization.
How it works?
You have to create a pipe file.
Bilderhic will run the commands inside your file.
The commands of the pipe file can be Bilderhic commands,
or bash / cmd commands.
Bilderhic includes usefull commands for edit files.
Installation
npm i -g bilderhic
Usage
bhic <file> [-vb or --verbose] [-d or --debug]
~ Bilderhic Commands ~
> env command
Description
It allows you to create / load / edit environment variables (inside your process).
Usage
Set variable manually
env set <key> <value>
Adds a value to a numeric variable
env add <key> <value>
Load variables
env load <file.yml>
File.yml example
app:
id: com.brand.app
version: 2
description: This is an awesome Android Application.
name: Awesomapp
Usage of environment variables
:open config.xml
- set widget.id=[app.id]
- set widget.android-versionCode=[app.version]
- set widget.version=0.0.[app.version]
- set widget>name=[app.name]
- set widget>description=[app.description]
- save
- close
Clear your environment
env clear
> copy command
Description
Copies a file or a folder. Override the files if it exists.
Usage
copy <from> <to>
> del command
Description
Deletes a file o a folder (recursively) if exists.
Usage
del <file or folder>
> cd command
DOC
> mkdir command
DOC
> ren command
DOC
> run command
DOC
~ Special Commands ~
:pipe <file>
:each folder
:each file
:open <file>
:if <conditions>
File edition
Text editors: TXT
Object editors: XML, HTML, JSON
~ Text editors ~
- append <text>
- set <line number> <text>
- replace <text> <replacement text>
- replaceone <text> <replacement text>
- save
- close
~ Object editors ~
- add <key>=<value>
- set <key>=<value>
- save
- close
Examples
bhic pipe.txt