Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/v0.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabea David committed Dec 2, 2015
2 parents cf3b48a + 11666b7 commit d41ed94
Show file tree
Hide file tree
Showing 84 changed files with 3,704 additions and 287 deletions.
58 changes: 11 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,26 @@
# wireshell
**ProcessWire command-line companion**

Version 0.5.0
Version 0.5.1

A command-line interface for CMS/CMF [ProcessWire](https://processwire.com) based on Symfony Console component.
A command-line interface for CMS/CMF [ProcessWire](https://processwire.com) based on the Symfony Console component.
Can be easily extended through ProcessWire's ability of being bootstrapped into other applications, its great [API](https://processwire.com/api/) and
Symfony Console's [modular command approach](http://symfony.com/doc/current/components/console/introduction%20%20%20%20%20%20.html).

## Documentation

Find more background, documentation and examples on [http://wireshell.pw](http://wireshell.pw)

### Quicklinks

* [Installation](http://wireshell.pw/#installation)
* [Commands: Common](http://wireshell.pw/#common)
* [Commands: Template](http://wireshell.pw/#template)
* [Commands: Field](http://wireshell.pw/#field)
* [Commands: Module](http://wireshell.pw/#module)
* [Commands: User](http://wireshell.pw/#user)
* [Commands: Role](http://wireshell.pw/#role)
* [Commands: Backup](http://wireshell.pw/#backup)
* [Contributing to wireshell](http://wireshell.pw/#contributing)
* [FAQ](http://wireshell.pw/#faq)
* [Contributors](http://wireshell.pw/#contributors)
* [Code Of Conduct](http://wireshell.pw/#code-of-conduct)
* [Support](http://wireshell.pw/#support)

## Changelog

* 0.5.0 (9/5/15) Adds PW core upgrade command, template:delete and :list commands, page command context including
creating, deleting, listing and trash-emptying
* 0.4.1 (5/17/15) Fixed some bugs regarding PHP 5.4/5.5
* 0.4.0 (5/15/15) Big update with a lot of contributed
commands and interfaces: "Module Download" command, extended
"Module Enable" command, enhanced "User Create", added "User Delete", "User
List" and "User Update" (thanks @justonestep). "Module Generate" command using
<a href="http://modules.pw">modules.pw</a>
(thanks @nicoknoll), added "Status" command listing information on
development, ProcessWire installation, image libraries (thanks
@horst-n). wireshell's code and documentation were extended/cleaned up
by @clsource. Also 0.4.0 introduced documentation microsite,
[wireshell.pw](http://wireshell.pw)
* 0.3.3 (4/8/15) Just a hotfix release, regarding the autoload path
* 0.3.2 (4/8/15) Added "Show Admin Url" command (since 0.4.0 part of "Status" command), added bin to composer.json
* 0.3.1 (4/8/15) Listed wireshell on Packagist, added that in the readme
* 0.3.0 (4/6/15) "New" Command now installs PW instead of just downloading it (thanks to a great PR by @HariKT), added
commands regarding fields, modules, and database backup
* 0.2.0 (28/3/15) Added "Create Template", extended "Create User" command with role assignment on the fly
* 0.1.0 (27/3/15) Started project :) With basic commands like "New" (just downloading ProcessWire, back then),
"Create User", "Create Role"
Find more background, documentation and examples:

## Licence

see LICENCE.md
- [Documentation latest](http://wireshell.readthedocs.org/en/latest/)
- [Documentation develop](http://wireshell.readthedocs.org/en/develop/)

![wireshell logo](http://wireshell.pw/logo.png)
## Changelog

- [Changelog latest](http://wireshell.readthedocs.org/en/latest/changelog/)
- [Changelog develop](http://wireshell.readthedocs.org/en/develop/changelog/)

## Licence

See: [LICENCE.md](/LICENCE.md)

![wireshell logo](http://wireshell.pw/logo.png)
14 changes: 13 additions & 1 deletion app/wireshell.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
use Wireshell\Commands\Template\TemplateListCommand;
use Wireshell\Commands\Field\FieldCreateCommand;
use Wireshell\Commands\Field\FieldCloneCommand;
use Wireshell\Commands\Field\FieldDeleteCommand;
use Wireshell\Commands\Field\FieldTagCommand;
use Wireshell\Commands\Field\FieldTypesCommand;
use Wireshell\Commands\Field\FieldListCommand;
use Wireshell\Commands\Module\ModuleDownloadCommand;
use Wireshell\Commands\Module\ModuleEnableCommand;
use Wireshell\Commands\Module\ModuleDisableCommand;
Expand All @@ -27,14 +31,16 @@
use Wireshell\Commands\Page\PageListCommand;
use Wireshell\Commands\Page\PageDeleteCommand;
use Wireshell\Commands\Page\PageEmptyTrashCommand;
use Wireshell\Commands\Logs\LogTailCommand;
use Wireshell\Commands\Logs\LogListCommand;

if (file_exists(__DIR__.'/../../../autoload.php')) {
require __DIR__.'/../../../autoload.php';
} else {
require __DIR__.'/../vendor/autoload.php';
}

$app = new Application('wireshell - An extendable ProcessWire CLI', '0.5.0');
$app = new Application('wireshell - An extendable ProcessWire CLI', '0.5.1');

$app->add(new UserCreateCommand());
$app->add(new UserUpdateCommand());
Expand All @@ -47,6 +53,10 @@
$app->add(new TemplateListCommand());
$app->add(new FieldCreateCommand());
$app->add(new FieldCloneCommand());
$app->add(new FieldDeleteCommand());
$app->add(new FieldTagCommand());
$app->add(new FieldTypesCommand());
$app->add(new FieldListCommand());
$app->add(new ModuleDownloadCommand());
$app->add(new ModuleEnableCommand());
$app->add(new ModuleDisableCommand());
Expand All @@ -61,5 +71,7 @@
$app->add(new PageListCommand());
$app->add(new PageDeleteCommand());
$app->add(new PageEmptyTrashCommand());
$app->add(new LogTailCommand());
$app->add(new LogListCommand());

$app->run();
77 changes: 77 additions & 0 deletions docs/assets/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* insert logo above menu */
.wy-menu.wy-menu-vertical:before {
content: '';
display: block;
background: url(../img/logo.svg) no-repeat;
margin: 1.6em;
height: 56px;
}

/* do not display nested headline in menu bar except h2 */
.wy-menu-vertical .toctree-l4,
.wy-menu-vertical .toctree-l5,
.wy-menu-vertical .toctree-l6 {
display: none;
}

/* inline code */
code {
border-radius: 2px;
padding: .2rem .3rem;
margin: 0 .1rem;
font-size: 82%;
background: rgba(111,112,114,.1);
color: #333;
}

/* block code */
pre code {
background: #fff;
margin-bottom: 2rem;
}

/* simulate headline */
img + strong {
font-size: 150%;
padding-left: .5rem;
font-family: "Roboto Slab", "ff-tisa-web-pro", "Georgia", Arial, sans-serif;
vertical-align: middle;
}

/* mediaquery @media screen and (max-width: 768px) logo, don't upscale it */
.logo {
width: auto;
}

/* reduce margin bottom */
p {
margin-bottom: 1rem;
}

/* faq */
.rst-content blockquote {
font-weight: 600;
margin-left: 0;
}

.question {
position: relative;
cursor: pointer;
padding: 1.5rem 1.5rem .75rem 0;
}

.question:after {
position: absolute;
top: 2rem;
right: 0;
width: 16px;
height: 8px;
background: url(../img/down.svg) no-repeat;
content: '';
}

.question--active:after {
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
7 changes: 7 additions & 0 deletions docs/assets/img/down.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/assets/img/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/wireshell.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions docs/assets/js/extra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
$(document).ready(function() {

function manipulateHtml() {
var $headlines = $('.rst-content').find('blockquote');

$headlines.each(function() {
var $this = $(this);
var answer = $this.nextUntil('hr');
var $wrapper = $('<div class="answer">');

$wrapper.append(answer);
$this.addClass('question');
$this.after($wrapper);
});

toggleSlideState($headlines);
}

function toggleSlideState($headlines) {
var $answers = $('.answer');

$answers.slideUp();
$headlines.removeClass('question--active');

$headlines.on('click', function() {
var $this = $(this);

$this.next().slideToggle();
$this.toggleClass('question--active');
});

}

// === FAQ
manipulateHtml();

});
123 changes: 123 additions & 0 deletions docs/assets/theme/mkdocs/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block htmltitle %}
<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
{% endblock %}

{% if favicon %}<link rel="shortcut icon" href="{{ favicon }}">
{% else %}<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}

{# CSS #}
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="{{ base_url }}/css/theme.css" type="text/css" />
<link rel="stylesheet" href="{{ base_url }}/css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
{%- for path in extra_css %}
<link href="{{ path }}" rel="stylesheet">
{%- endfor %}

<script src="{{ base_url }}/js/jquery-2.1.1.min.js"></script>
<script src="{{ base_url }}/js/modernizr-2.8.3.min.js"></script>
<script type="text/javascript" src="{{ base_url }}/js/highlight.pack.js"></script>
<script src="{{ base_url }}/js/theme.js"></script>

{%- block extrahead %} {% endblock %}

{%- for path in extra_javascript %}
<script src="{{ path }}"></script>
{%- endfor %}

{% if google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
ga('send', 'pageview');
</script>
{% endif %}
</head>

<body class="wy-body-for-nav" role="document">

<div class="wy-grid-for-nav">

{# SIDE NAV, TOGGLES ON MOBILE #}
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href="{{ homepage_url }}" class="icon icon-home"> {{ site_name }}</a>
{% include "searchbox.html" %}
</div>

<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
{% for nav_item in nav %}
{% if nav_item.title != "hidden" %}
<li>{% include "toc.html" %}<li>
{% endif %}
{% endfor %}
</ul>
</div>
&nbsp;
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="{{ homepage_url }}">{{ site_name }}</a>
</nav>

{# PAGE CONTENT #}
<div class="wy-nav-content">
<div class="rst-content">
{% include "breadcrumbs.html" %}
<div role="main">
<div class="section">
{% block content %}
{{ content }}
{% endblock %}
</div>
</div>
{%- block footer %}
{% include "footer.html" %}
{% endblock %}
</div>
</div>

</section>

</div>

<div class="rst-versions" role="note" style="cursor: pointer">
<span class="rst-current-version" data-toggle="rst-current-version">
{% if repo_name == 'GitHub' %}
<a class="icon icon-github" style="float: left; color: #fcfcfc"> GitHub</a>
{% elif repo_name == 'Bitbucket' %}
<a class="icon icon-bitbucket" style="float: left; color: #fcfcfc"> BitBucket</a>
{% endif %}
{% if previous_page %}
<span><a href="{{ previous_page.url }}" style="color: #fcfcfc;">&laquo; Previous</a></span>
{% endif %}
{% if next_page %}
<span style="margin-left: 15px"><a href="{{ next_page.url }}" style="color: #fcfcfc">Next &raquo;</a></span>
{% endif %}
</span>
</div>

</body>
</html>
{% if current_page and current_page.is_homepage %}
<!--
MkDocs version : {{ mkdocs_version }}
Build Date UTC : {{ build_date_utc }}
-->
{% endif %}

0 comments on commit d41ed94

Please sign in to comment.