Skip to content

wp-launchpad/cli-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

installer

Install libraries from the Launchpad Framework.

Install

To install run the following command : composer require wp-launchpad/cli-installer

Then you need to add the provider LaunchpadCLIInstaller\ServiceProvider to the /bin/generator file:

#!/usr/bin/php
<?php

use LaunchpadCLI\AppBuilder;

require_once __DIR__ . '/../vendor/autoload.php';

AppBuilder::init(__DIR__ . '/../', [
        \LaunchpadTakeOff\ServiceProvider::class,
        \LaunchpadCLIInstaller\ServiceProvider::class,
]);

Create a library compatible

To make a library compatible you need to add the following content:

"extra": {
    "launchpad": {
      "provider" : "MyCLI\\MyProvider",
      "library_provider" : "MyLibrary\\MyProvider",
      "command": "my-command",
      "install": true,
      "clean": true,
      "libraries": {
        "owner/library": "^0.0.1"
      }
    }
  }
Name Type Example Description
provider string MyCLI\MyProvider The service provider from the cli library if there is one
library_provider string MyLibrary\MyProvider The service provider from the library if there is one
command string my-command The command to install the library if there is one
install boolean true Should the command be executed or just displayed to the user
clean boolean true Should the library be removed after the installation
libraries array {"owner/library": "^0.0.1"} Libraries to install into dependencies

About

CLI command that install automatically Launchpad take off modules [READ ONLY]

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages