cask
所属分类:其他
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2024-03-31 04:54:18
上 传 者:
sh-1993
说明: A universal, distributed binary file manager. 一个通用的去中心化二进制管理器
(A universal, distributed binary file manager A Universal Decentralized Binary Manager)
文件列表:
.vscode/
crates/
fixtures/
src/
CONTRIBUTING.md
Cargo.lock
Cargo.toml
Cask.toml.md
Cross.toml
DESIGN.md
LICENSE
Makefile
install.ps1
install.sh
logo.svg
[English](https://github.com/cask-pkg/cask.rs/blob/master/README.md) | 中文简体
Cask
[![installation](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/installation.yml/badge.svg)](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/installation.yml)
[![lint](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/lint.yml/badge.svg)](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/lint.yml)
[![test](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/test.yml/badge.svg)](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/test.yml)
[![build](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/build.yml/badge.svg)](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/actions/workflows/build.yml)
![Latest Version](https://github.com/cask-pkg/cask.rs/blob/master/https://img.shields.io/github/v/release/cask-pkg/cask.rs.svg)
![License](https://github.com/cask-pkg/cask.rs/blob/master/https://img.shields.io/github/license/cask-pkg/cask.rs.svg)
![Repo Size](https://github.com/cask-pkg/cask.rs/blob/master/https://img.shields.io/github/repo-size/cask-pkg/cask.rs.svg)
一个通用的,二进制包管理器。
[安装](https://github.com/cask-pkg/cask.rs/blob/master/#安装) |
[使用](https://github.com/cask-pkg/cask.rs/blob/master/#使用) |
[如何发布包?](https://github.com/cask-pkg/cask.rs/blob/master/DESIGN.md#how-do-i-publish-package) |
[设计](https://github.com/cask-pkg/cask.rs/blob/master/DESIGN.md) |
[贡献](https://github.com/cask-pkg/cask.rs/blob/master/CONTRIBUTING.md) |
[Cask.toml](https://github.com/cask-pkg/cask.rs/blob/master/Cask.toml.md)
如果你已经疲于:
1. 在不同的平台安装不同的包管理器 (Homebrew/Chocolatey/Scoop).
2. 写很多次安装脚本(Bash/PowerShell).
3. 发布新版本是更新远端包信息
那么欢迎来到 Cask。
## 跨平台支持
- [x] macOS(x86_64/arm64)
- [x] Windows(i686/x86_64/arm64/MSYS2/Cygin/WSL)
- [x] Linux(arm/arm64/x86_64/mips/mips64/mips64el)
- [x] freeBSD(x86_64)
## 安装
1. Shell (Mac/Linux)
```bash
curl -fsSL https://raw.githubusercontent.com/cask-pkg/cask.rs/main/install.sh | bash
```
2. PowerShell (Windows):
```pwshell
iwr https://raw.githubusercontent.com/cask-pkg/cask.rs/main/install.ps1 -useb | iex
```
3. [Github release page](https://github.com/cask-pkg/cask.rs/blob/master/https://github.com/cask-pkg/cask.rs/releases)
下载可执行文件,然后放到 `$PATH` 目录下
4. 从已有的版本更新
```bash
cask self-update
```
尝试运行以下命令
```terminal
$ cask --help
cask v0.4.6
Axetroy
General distributed binary distribution package management, written in Rust.
USAGE:
cask
OPTIONS:
-h, --help Print help information
-V, --version Print version information
SUBCOMMANDS:
check-updates Check and update packages to latest [aliases: check-upgrades]
clean Clear residual data [aliases: clear]
help Print this message or the help of the given subcommand(s)
homepage Open homepage of package [aliases: home]
info Show information of package
install Install package [aliases: i]
list List installed package [aliases: ls]
relink Relink installed packages
remote Operation for build-in formula
self-uninstall Uninstall cask itself and installed package
self-update Update Cask to the newest version [aliases: self-upgrade]
uninstall Uninstall package [aliases: rm]
update Upgrade package to latest [aliases: upgrade]
```
## 使用
```sh
# cask install
cask install github.com/axetroy/dvm
# cask install
cask install github.com/axetroy/dvm 1.x
# cask install
cask install https://github.com/axetroy/dvm.git
# cask install from stdin
curl https://raw.githubusercontent.com/axetroy/dvm/master/Cask.toml | cask install
# cask uninstall
cask uninstall github.com/axetroy/dvm
# or uninstall with shorter command
cask rm dvm
```
运行 `cask --help` 以查看更多信息.
## 命令
| Command | Description |
| ---------------------------------- | -------------------------- |
| cask install \ [VERSION] | 安装包 |
| cask uninstall \ | 卸载包 |
| cask info \ | 显示包信息 |
| cask update \ | 更新包到最新版本 |
| cask homepage \ | 打开包的主页 |
| cask check-updates | 检查并更新包到最新版本 |
| cask list | 列出已安装的包 |
| cask clean | 清除缓存数据 |
| cask self-update | 升级 Cask |
| cask self-uninstall | 卸载 Cask 以及安装的包 |
| cask remote sync | 同步远端的内置包信息到本地 |
| cask remote list | 显示远端的内置包信息 |
## 使用条件
Cask 依赖于 [Git](https://github.com/cask-pkg/cask.rs/blob/master/https://git-scm.com)
## 贡献者
这个项目的存在离不开你们的贡献。 [如何贡献](https://github.com/cask-pkg/cask.rs/blob/master/CONTRIBUTING.md).
## 开源许可
The [MIT License](https://github.com/cask-pkg/cask.rs/blob/master/LICENSE)
近期下载者:
相关文件:
收藏者: