Skip to content

metrizzle/figlet-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jfiglet-maven-plugin

Build Status

Decorate your builds with figlet ascii banners like

Generates banners on the jvm with help of several libs

<dependency>
	<groupId>${project.groupId}</groupId>
	<artifactId>${project.artifactId}</artifactId>
	<version>${project.version}</version>
</dependency>
  _________ _______________          ______      _____
  ______  /____  ____/___(_)_______ ____  /_____ __  /_
  ___ _  / ___  /_    __  / __  __ `/__  / _  _ \_  __/
  / /_/ /   _  __/    _  /  _  /_/ / _  /  /  __// /_  
  \____/    /_/       /_/   _\__, /  /_/   \___/ \__/  
  jflight-maven-plugin      \____/
                        _|_|  _|            _|              _|
_|_|_|    _|    _|    _|            _|_|_|  _|    _|_|    _|_|_|_|
_|    _|  _|    _|  _|_|_|_|  _|  _|    _|  _|  _|_|_|_|    _|
_|    _|  _|    _|    _|      _|  _|    _|  _|  _|          _|
_|_|_|      _|_|_|    _|      _|    _|_|_|  _|    _|_|_|      _|_|
_|              _|                      _|
_|          _|_|                    _|_|
___________.___  ________.__          __          __        
\_   _____/|   |/  _____/|  |   _____/  |_       |__| ______
 |    __)  |   /   \  ___|  | _/ __ \   __\      |  |/  ___/
 |     \   |   \    \_\  \  |_\  ___/|  |        |  |\___ \
 \___  /   |___|\______  /____/\___  >__| /\ /\__|  /____  >
     \/                \/          \/     \/ \______|    \/

Usage

TBD Commandline example

The ˚figletize˚ goal allows generating ascii banner from specified text parameter.

<plugin>
    <groupId>com.github.maven.plugins</groupId>
    <artifactId>jfiglet-maven-plugin</artifactId>
    <configuration>
    	<driver>jfiglet</driver>
        <text>jfiglet</text>
        <font>slanr</font>
        <!--
        <font>classpath:slant.flf</font>
        <splash>true</splash>
        <outputFileName>banner.txt</outputFileName>
        -->
    </configuration>
</plugin>

Figlet Libraries and fonts

The plugin is tested and packaged with the mentioned Driver libraries.

The integration of pyfiglet and figlet-js are based on the Java ScriptEngine abstraction.

Jython is utilized to run the python code from pyfiglet. Nashorn is used to execute the javascript code.

The driver runtime exposes an internal java interface to control and postprocess the output.

The font files packaged with the driver libraries are made available exclusive when resolving resource fonts.

TODO

  • -Support and tests bannerFileName option ˚banner.txt˚-
  • -Goal and tests standalone execution (preview printing from cmdline)-
  • Enable driver specific options kerning, smushing via cmd
  • Goal for printing all packaged fonts figlist
  • Goal for font details
  • Resolve arbitary http fonts files into driver environment
  • Resolve arbitary classpath fonts files driver independent
  • Toilet support for color schemes -> http://caca.zoy.org/wiki/toilet
  • Create a list from font files
  • Add pre and postprocessing hooks -> additional lines etc.
  • Train a neural network on ascii texts and see what it outputs - Wait wooat

Testing

The plugin utilizes takari.io Maven Plugin Testing support See takari-plugin-testing-project pages for details.

Resources

Figlet Font

Maven

Python/Jython

About

Generate and decorate your builds with ascii banners

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published