roots / roots/trellis-cli

Feature Request: `vm` commands for Composer, PHP, and WP-CLI

Open
#386 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
169
Forks
30
Avg merge
13h 43m
Merged PRs (30d)
7

Description

Summary

Add trellis vm commands that utilize trellis vm shell --workdir=<cwd> <command> for: composer, php, and wp

This would allow for more quickly executing Composer, PHP, and WP-CLI commands

Examples:

$ trellis vm composer install
$ trellis vm wp acorn optimize:clear
$ trellis vm php script.php

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the existing trellis vm shell --workdir=<cwd> <command> entry point and trace how VM commands are registered and dispatched. Add the composer, php, and wp command forms, then verify the documented examples execute through the VM with the current working directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, php, wordpress
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.