Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tdgroot/timpack-cli

A command-line-interface to make my life easier
https://github.com/tdgroot/timpack-cli

composer magento php rust

Last synced: 17 days ago
JSON representation

A command-line-interface to make my life easier

Awesome Lists containing this project

README

        

[![Latest version](https://img.shields.io/crates/v/timpack-cli.svg)](https://crates.io/crates/timpack-cli)

# timpack-cli
A command-line-interface to make my life easier.

## How to build
To build the application, you need rust and cargo installed.

### Fedora dependencies
`sudo dnf install rust cargo`

### Building the application

```
cd /path/to/timpack-cli-project
cargo build
cargo run php72 cc list
```

## Installation
The cli is only installable with Rust's [Cargo](https://crates.io/).

```
cargo install timpack-cli
```

Make sure you have the cargo bin directory in your `PATH`.

```
export PATH=$PATH:$HOME/.cargo/bin
```

## How to use
```
# Run composer update with default php interpreter
timpack-cli cc update

# Run composer update with php 7.1
timpack-cli php71 cc update

# Run n98-magerun cache:flush with php 7.0
timpack-cli php70 m1 cache:flush

# Run n98-magerun2 cache:flush with php 7.1
timpack-cli php71 m2 setup:upgrade
```

There are some aliases:
- cc => composer
- m1 => n98-magerun
- m2 => n98-magerun2