GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Rareloop/hatchet: Lumberjack CLI

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
tests/Unit
tests/Unit
 
 
.coveralls.yml
.coveralls.yml
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
hatchet
hatchet
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation

Hatchet - CLI for Lumberjack

CI Coveralls

Installation

composer require rareloop/hatchet

Once installed you need to copy the hatchet file into your Lumberjack theme directory.

It is assuming you're using Lumberjack inside Bedrock. If not, you may need to make some changes to paths in the hatchet file

Basic Usage

You can now access the Hatchet CLI from inside your Lumberjack theme directory:

To show available commands

php hatchet list

To run a command

For a given command called test:command you would run the following:

php hatchet test:command

Get additional help about a command

For a given command called test:command you would run the following:

php hatchet help test:command

Adding Commands

To add additional commands to Hatchet add them to config/hatchet.php (create the file if it doesn't exist).

// config/hatchet.php

return [
    'commands' => [
        MyCommand::class,
    ],
];

Writing Commands

Create a subclass of Rareloop\Hatchet\Commands\Command:

namespace MyNamespace;

use Rareloop\Hatchet\Commands\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class ControllerMake extends Command
{
    protected $signature = 'test:command {paramName : The description of the parameter}';

    protected $description = 'A description of the command';

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        // Command implementation
    }
}

Hatchet uses the same $signature syntax as Laravel, see here for more information.

Hatchet Command is a subclass of Symfony's Command object, for more information on how to implement the execute() function see here.

About

Lumberjack CLI

Resources

Readme
MIT license
Activity
Custom properties

Stars

11 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.