[][src]Enum st_cli::StCli

pub enum StCli {
    Build,
    Clean,
    Format,
    Lint,
    Outdated,
    Run,
    Update,
    Test,
    Sync,
    Lock,
    Install,
    Publish,
    Bump(Bump),
    Docker(DockerCmd),
}

Variants

Build

编译

Rust 项目 默认使用: cargo build npm 项目 不支持 poetry 项目 默认使用: poetry build 打包

Clean

清理开发环境

Rust 使用 cargo clean

npm 清理缓存 npm cache clean

poetry 不支持

Format

格式化代码

当前支持

Python poetry 的项目 [需要安装 black]

Rust 项目 cargo fmt

Lint

代码检测

Rust 使用 Cargo clippy

Python 使用 pylama

Outdated

检测依赖是否有新版

Rust 使用 Cargo

Python 使用 Poetry

Run

运行

Rust 使用 cargo run

Python Django 项目使用 django-admin runserver

Update

升级依赖版本

Rust 使用 cargo

Python 使用 Poetry

Test

测试

Rust 语言使用 cargo test

Python 使用 pytest

Sync

同步依赖

Lock

锁定依赖

锁定当前的依赖

Python 使用 Poetry

Install

本地安装

本地安装当前的软件 Rust 使用 cargo install --path .

Publish

发布

Python 使用 Poetry 发布到 Pypi

todo Rust 使用 cargo 发布到 Crates

Bump(Bump)

提升版本

Docker(DockerCmd)

docker 命令

Implementations

impl StCli[src]

pub fn run(&self)[src]

Trait Implementations

impl Debug for StCli[src]

impl StructOpt for StCli[src]

impl StructOptInternal for StCli[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.