Polpetta / jkk

A git-like cli for Jenkins written in Kotlin 🤵 🔥
GNU General Public License v3.0
0 stars 1 forks source link

Add easter egg command #18

Open Polpetta opened 4 years ago

Polpetta commented 4 years ago

Note: I don't know how to hide it from Clikt, I'd merge after we find a way

I generated the ASCII arts with the following Javascript snippet:

var figlet = require('figlet');
var fs = require('fs');
var prints = [];
figlet.fontsSync().forEach(item => {
    prints.push(figlet.textSync('JKK', {
        font: item,
        horizontalLayout: 'default',
        verticalLayout: 'default'
    }));
});

fs.writeFileSync('logos.json', JSON.stringify(prints));
console.log('done')

See https://github.com/patorjk/figlet.js

Polpetta commented 4 years ago

Note to myself: searching in the Clikt documentation it seems to be something we want: https://ajalt.github.io/clikt/api/clikt/com.github.ajalt.clikt.parameters.options/-option/hidden/