#!/usr/bin/php
<?php

require __DIR__.'/base/block.php';

$name = $argv[1] ?? null;
$app = $argv[2] ?? null;
$background = $argv[3] ?? '#333';
$foreground = $argv[4] ?? '#fff';

if (empty($name) && empty($app)) {
    die;
}

if (getenv('BLOCK_BUTTON') === '1') {
    pclose(popen($app, 'r'));
}

echo block(
    'app_'.$name,
    [
        'full_text' => pspan($name, $foreground, $background),
    ]
);
Insertar
<div%key%id="gist-5c87aacf24baf-fdc3c7c4af914dd80a2ac9bd32093e79292c901a" class="gist-container"></div>
<script src="https://gist.deblan.org/es/embedjs/5c87aacf24baf" async></script>