2个版本
0.1.1 | 2020年7月16日 |
---|---|
0.1.0 | 2019年12月5日 |
#2647 in 命令行工具
40KB
622 代码行
felloe
– 交互式Helm版本管理
交互式Helm版本管理 - 用于在升级生产集群之前进行集群跳转和尝试Helm和Tiller的新版本。
安装
二进制版本
- 从发布版本中下载一个版本
- 解压缩存档
- 移动
felloe
二进制文件并将其添加到PATH chmod a+x path/to/felloe
Homebrew
brew tap ddlees/felloe
brew install felloe
Chocolatey for Windows
choco install felloe
Crates.io
从crates.io安装包
cargo install felloe
# Reinstall or upgrade:
cargo install felloe --force
从源代码构建
运行以下命令从源代码构建
git clone https://github.com/ddlees/felloe.git
cd felloe
cargo install --path .
# Reinstall or upgrade:
cargo install --path . --force
自动完成
bash
$ felloe completions bash >> ~/.bash_profile # macos
$ felloe completions bash >> ~/.bashrc # linux
zsh
$ felloe completions zsh > /usr/local/share/zsh/site-functions/_felloe
fish
$ mkdir -p ~/.config/fish/completions # (optional)
$ felloe completions fish > ~/.config/fish/completions/felloe.fish
powershell
PowerShell自动完成脚本需要PowerShell v5.0+(它包含在Windows 10中,但可以从Windows 7或8.1中单独下载)。
# Check for profile
C:\> Test-Path $profile
# Create profile if none exists
C:\> New-Item -path $profile -type file -force
# Append completions to profile
C:\> felloe completions powershell >>
${env:USERPROFILE}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
elvish
# Create completions plugin
~> mkdir -p ~/.elvish/lib/completions
~> felloe completions elvish > ~/.elvish/lib/completions/felloe.elv
# Update rc.elv
~> echo "use completions/felloe" >> ~/.elvish/rc.elv
用法
felloe--帮助
felloe 0.1.0
⎈ The helm version manager
USAGE:
felloe [FLAGS] [OPTIONS] [version] [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-l, --latest Show latest official helm version
-V, --version Prints version information
OPTIONS:
--log-level <log-level>
ARGS:
<version>
SUBCOMMANDS:
completions Generate completions for desired shell
exec Execute command with modified PATH, so downloaded helm <version> first
help Prints this message or the help of the given subcommand(s)
latest Install the latest official helm release
list Output downloaded versions
prune Remove all downloaded versions except the currently installed version
remove Remove the given installed version(s)
run Execute downloaded helm <version> with [args ...]
uninstall Remove the installed helm
versions Output matching versions available for download
which Output path for downloaded helm <version>
许可证
本作品根据Apache 2.0和MIT双重许可,以帮助避免在使用此软件或其库与GPL2时出现问题。
SPDX-许可证-标识符:Apache-2.0 OR MIT
贡献
本项目受到频繁进行集群跳转,需要在Helm和以下项目之间切换版本的启发
依赖项
~24–36MB
~644K SLoC