# yssh **Repository Path**: conero/yssh ## Basic Information - **Project Name**: yssh - **Description**: Yang's system helper shell, util for system or more. Rust and Go - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-31 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # yssh > 2019年11月7日 星期四 > > Joshua Conero ## 概述 *基于 rust 与 golang 的代码编写常用的命令行工具。rust 语言的启发项目:[deno](https://github.com/denoland/deno), [rocket](https://github.com/SergioBenitez/Rocket).* ### rust ```shell # 打开本地文档 rustup doc ``` #### rust fmt [代码仓库](https://github.com/rust-lang/rustfmt),初始化如下: ```shell # 使用 fmt 格式化代码 # 安装组件 rustup component add rustfmt # 格式化 cargo fmt # 格式化并显示详情 cargo fmt --all -v ``` ## 设计 ### 命令程序 ```powershell # 运行 # 格式 # yysh [command] [option] # yysh [option] yysh ``` #### 选项、数据 ```shell # 选项 (-xyz, --xyz, --test, --any) => [x, y, z, xyz, test, any] # 数据 --key=value, "key=value", "key=value&key2=value" ``` ### uymas *与使用 ,Rocket 类似的宏实现路由,考虑的复杂性先使用简单的回调函数实现。* ## 参考 ### 文档 - [rust 语言中文文档](https://kaisery.github.io/trpl-zh-cn/)