Skip to content

Hammer&Wrench - developer tool for Mirele projects. Download, loosen, customize, debug, compile and relax

Notifications You must be signed in to change notification settings

mirele-wp/Hammer-Wrench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Hammer&Wrench - Development Assistance Tool

Hammer&Wrench is a tool to help you debug, diagnose or develop modules, components, templates within the Mirele architecture.

Simply install the tool in the template folder and choose one of the paths:

  1. Connect the file directly to the template
  2. Use it as a CLI utility

How do I install the tool in your Mirele distribution?

ATTENTION: If you have already installed and worked with the Mirele developer tools - CREATE BACKUP package.json FILE! During the following operations this file will be overwritten. If you do not have this file - you can ignore this warning.

The distribution is the same as the theme. By 'distribution' we mean the theme installed in your WordPress. The tool is very easy to install. You can do it with just one command

(curl "https://raw.githubusercontent.com/irtex-mirele/Hammer-Wrench/main/Hammer&Wrench.php" > "Hammer&Wrench.php" && curl "https://raw.githubusercontent.com/irtex-mirele/Hammer-Wrench/main/project.json" > "project.json" && print "\u001b[37mMirele — \u001b[32mInstallation is successfully completed. The "install" step has been successfully completed")

Explanation of the code: Installation of Hammer&Wrench and package.json file

In your console you will see something like this.

At this step, the installation phase of the tool is successfully completed!

Introduction to CLI modes of the utility

Checking PHP

Make sure you have php 7+ installed, type the command in the terminal to do this:

php -v

Explanation of the code: Checking the PHP version

In the console you should get a version of your PHP, if it is installed

If you did not see the output of the PHP version in your console, we recommend using the following links to install PHP:

  1. https://www.php.net/manual/en/install.unix.debian.php
  2. https://linuxize.com/post/how-to-install-php-on-ubuntu-18-04

Also make sure that your version of PHP is above version 7.0.0.

Checking Hammer&Wrench

After checking the PHP version, you can start working. To access the utility, enter the command

php "Hammer&Wrench.php"

Explanation of the code: Launch the Hammer&Wrench utility without arguments

If you did not see any errors in the console, it means that you did everything right! Congratulations on your first successes!

The first use. Information about available commands

To know the available commands, pass the --help argument to the utility.

php "Hammer&Wrench.php" --help

Explanation of the code: Getting information about available commands of the utility

The rest of the information on commands can be found in the WiKi


Good luck in diagnosis and development

About

Hammer&Wrench - developer tool for Mirele projects. Download, loosen, customize, debug, compile and relax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages