2017 © Pedro Peláez
 

craft-plugin exec-widget

Widgets which run Tasks that call exec(...)

image

marionnewlevant/exec-widget

Widgets which run Tasks that call exec(...)

  • Wednesday, February 14, 2018
  • by marionnewlevant
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 44 % Grown

The README.md

Exec Widget plugin for Craft CMS 3.x

Widgets which run Tasks that call exec(...), (*1)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*2)

Installation

  1. Install with Composer via composer require marionnewlevant/exec-widget from your project directory
  2. Install plugin in the Craft Control Panel under Settings > Plugins

or, (*3)

  1. Install via the Plugin Store

Exec Widget Overview

Dashboard widget that runs php exec in a task., (*4)

Configuring Exec Widget

You need a config file, config/execWidget.php. That file defines the different commands that can be run., (*5)

Sample configuration file (note that the usual multi-environment config works here too):, (*6)

<?php

return [
  'commands' => [
    // each command has the name it will be displayed with
    // and the command line
    'Do the Thing' => './bin/doTheThing.sh --quiet',
    'Another Thing' => './bin/somethingElse.sh',
  ]
];

Using Exec Widget

Add the widget to the dashboard, and configure it with instructions and choosing the command. The Do it button will launch a task to run the command. Command output will be captured in the queue.log log. Search for ExecWidget Task to find output., (*7)

Brought to you by Marion Newlevant. Icon shell by B Barrett from the Noun Project., (*8)

The Versions

14/02 2018

dev-master

9999999-dev

Widgets which run Tasks that call exec(...)

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft exec widget

14/02 2018

1.0.0

1.0.0.0

Widgets which run Tasks that call exec(...)

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft exec widget