Search
 
SCRIPT & CODE EXAMPLE
 

CSS

Deployer custom Options

use SymfonyComponentConsoleInputInputOption;
use SymfonyComponentConsoleInputInputArgument;

argument('stage', InputArgument::OPTIONAL, 'Run tasks only on this host or stage.');
option('tag', null, InputOption::VALUE_OPTIONAL, 'Tag to deploy.');
Comment

Deployer custom Options

task('foo:bar', function() {
    // For arguments
    $stage = null;
    if (input()->hasArgument('stage')) {
        $stage = input()->getArgument('stage');
    }
    
    // For option
    $tag = null;
    if (input()->hasOption('tag')) {
        $tag = input()->getOption('tag');
    }
});
Comment

PREVIOUS NEXT
Code Example
Css :: css folded corner 
Css :: scale to smaller of vh and vw 
Css :: input type color 
Css :: scss a link style 
Css :: show input number spin buttons , spinner input number 
Css :: difference bw box and border box 
Css :: var in css 
Css :: space-x css 
Css :: html css drow line 
Css :: how to apply hover through inline css 
Css :: ui gradient 
Css :: how to remove default border 
Css :: css 4 3 ratio 
Css :: repeat css 
Css :: background-clip 
Css :: css-loader 
Css :: backface-visibility: hidden; 
Css :: css display contents 
Css :: after and before css 
Css :: id selector css 
Css :: disable dequeue contact form7 
Css :: what does it mean when we write width :100%? 
Css :: div css 
Css :: Importar una fuente CSS 
Css :: css clip path alternative 
Css :: fix materialize form label not working 
Css :: good news 
Css :: enable gutenberg for post 
Css :: easyui how to change datagrid header height 
Css :: disabled attribute on button still showing click animation safari macos 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =