Skip to content

stevenleeS0ht/bstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bstyle:

a high level wrapper of astyle.

Advantage over alias:

Aspect bstyle alias
deploy single line command config all bashrc manually
use more clear cli-opts you have to obey original cli-opts layout

Installation:

Type the following command in shell.

cd path/to/source
./installprog.sh /usr/local

Usage:

To convert a file of C-like source code:

bstyle -t path/to/source/targetfile1 -t path/to/source/targetfile2 -s FavoriteStyle

To List all avaliable styles:

bstyle -l

Output:

nice|nice-c -> Nice C (C); nice-c++ -> Nice C++ (C++); qt|qt-c++ -> Qt (C++); linux -> Linux Kernel (C); google|google-c++ -> Google C++ (C++)

It currently doesn't support formating all directory recursively, but there is alternative way to implement that.

Format all files recursively with assistence of findutils

find path/to/your/project -type f -name \*.xxx -exec bstyle -s STYLE -t {} \;

Support Style:

NOTE:

If there is incorrect astyle options for a certain style, please add a issue or send me a pull request with relevent references.

About

Based on artistic Style (Basic aStyle wrapper)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages