Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liuchong/cargo-x
A very simple third-party cargo subcommand to execute a custom command
https://github.com/liuchong/cargo-x
cargo party-cargo-subcommand rust rust-crate rust-lang rustlang
Last synced: 27 days ago
JSON representation
A very simple third-party cargo subcommand to execute a custom command
- Host: GitHub
- URL: https://github.com/liuchong/cargo-x
- Owner: liuchong
- License: apache-2.0
- Created: 2018-12-18T12:56:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T10:06:46.000Z (4 months ago)
- Last Synced: 2024-09-30T12:04:38.581Z (about 1 month ago)
- Topics: cargo, party-cargo-subcommand, rust, rust-crate, rust-lang, rustlang
- Language: Rust
- Size: 30.3 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - liuchong/cargo-x - party cargo subcommand to execute a custom command [<img src="https://api.travis-ci.org/liuchong/cargo-x.svg?branch=master">](https://travis-ci.org/liuchong/cargo-x) (Development tools / Build system)
- awesome-rust - liuchong/cargo-x - party cargo subcommand to execute a custom command [<img src="https://api.travis-ci.org/liuchong/cargo-x.svg?branch=master">](https://travis-ci.org/liuchong/cargo-x) (Development tools / Build system)
- awesome-rust-zh - liuchong/cargo-x - 执行自定义命令的,非常简单的第三方 Cargo 子命令[<img src="https://api.travis-ci.org/liuchong/cargo-x.svg?branch=master">](https://travis-ci.org/liuchong/cargo-x) (开发工具 / 构建系统)
- awesome-rust - liuchong/cargo-x - party cargo subcommand to execute a custom command [<img src="https://api.travis-ci.org/liuchong/cargo-x.svg?branch=master">](https://travis-ci.org/liuchong/cargo-x) (开发工具 Development tools / 创建系统 Build system)
README
cargo-x
=======[![Build Status](https://github.com/liuchong/cargo-x/actions/workflows/rust.yml/badge.svg)](https://github.com/liuchong/cargo-x/actions/workflows/rust.yml)
[![APACHE licensed](https://img.shields.io/badge/license-apache%202.0-blue.svg)](./LICENSE-APACHE)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE-MIT)
[![crates.io](https://img.shields.io/crates/v/cargo-x.svg)](https://crates.io/crates/cargo-x)
[![Released API docs](https://docs.rs/cargo-x/badge.svg)](https://docs.rs/cargo-x)A very simple third-party cargo subcommand to execute a custom command
## Usage
1. install cargo-x
```
cargo install cargo-x
```or upgrade
```
cargo install -f cargo-x
```2. write a config file `x.toml` in `"name = detail"` format like
```
ls = "ls -ltr"
```or same lines in file `~/.x.toml`,
or in `[package.metadata.x]` section in `Cargo.toml` file.
***note*** that `DO NOT` use key x like `x = "any command"`, `cargo-x x` will run into problem,
because it does not know if it is using `cargo-x x` or `cargo x`.3. use cargo-x
```
cargo x ls
# or
cargo-x ls
# or
x ls
```## License
Licensed under either of these:
* Apache License Version 2.0 [LICENSE-APACHE](LICENSE-APACHE)
* MIT License [LICENSE-MIT](LICENSE-MIT)### Contributing
Please sign a cla, thanks!