library/Garp/Cli/Command/Snippet.php
public function create(array $args = array()) {
        $this->_overwrite = isset($args['overwrite']) && $args['overwrite'];
        if (isset($args['i']) || isset($args['interactive'])) {
            return $this->_createInteractive();
        }
        $file = $this->_parseFileFromArguments($args);
        $file = APPLICATION_PATH . '/configs/' . $file;
        $this->_createFromFile($file);
        return true;
    }
public function create(array $args = array()) {
        $this->_overwrite = isset($args['overwrite']) && $args['overwrite'];
        if (isset($args['i']) || isset($args['interactive'])) {
            return $this->_createInteractive();
        }
        $file = $this->_parseFileFromArguments($args);
        $file = APPLICATION_PATH . '/configs/' . $file;
        $this->_createFromFile($file);
        return true;
    }
public function create ( array $ args = array ( ) ) { $ this -> _overwrite = isset ( $ args [ 'overwrite' ] ) && $ args [ 'overwrite' ] ; if ( isset ( $ args [ 'i' ] ) || isset ( $ args [ 'interactive' ] ) ) { return $ this -> _createInteractive ( ) ; } $ file = $ this -> _parseFileFromArguments ( $ args ) ; $ file = APPLICATION_PATH . '/configs/' . $ file ; $ this -> _createFromFile ( $ file ) ; return true ; }
Create new snippet

@param array $args
@return bool
Create new snippet