Skip to content

Vostok-space/odcey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odcey

Command-line tool for .odc format, used by BlackBox Component Builder Provides converting to plain text.

Usage

odcey text  [input [output]] { options }
odcey git   [dir]

Command 'text' prints text content of .odc; empty arguments for standard IO

-commander-to <str>  allows in output replacing DevCommanders.StdView by the argument
-skip-embedded-view  skips recursive writing of embedded views
-skip-comment        skips (* Oberon comments *)
-tab <str>           set tabulation replacement

Command 'git' embeds to git repo as text converter, what equal to commands:

echo '*.odc diff=cp' >> .git/info/attributes
echo '[diff "cp"]
	binary = true
	textconv = odcey text <' >> .git/config

Midnight Commander integration

Add to ~/.config/mc/mc.ext

#odc BlackBox Component Builder container document
shell/.odc
View=%view{ascii} odcey text < %f

Install

/usr/bin/sudo snap install odcey
# or
brew tap vostok-space/oberon &&
brew install odcey
# or
/usr/bin/sudo npm install --global odcey

Build

# install vostok-translator if it still absent through snap
/usr/bin/sudo snap install vostok --classic --beta && /usr/bin/sudo snap alias vostok ost
# or through brew
brew tap vostok-space/oberon && brew install vostok
# then build
ost to-bin odcey.Cli odcey -m . -cc 'cc -O1 -s'

About

Tool for .odc format from BlackBox Component Builder

Resources

License

Stars

Watchers

Forks

Packages

No packages published