module
Version:
v0.0.0-...-229c536
Opens a new window with list of versions in this module.
Published: Nov 22, 2019
License: MIT
Opens a new window with license information.
README
¶
translate-cli
介绍
这是一个命令行的翻译程序
依赖于有道翻译的网络接口
一般用来翻译看不懂的命令行输出,支持管道操作。
例如:
> echo hello | fy
hello
你好
> fy hello
hello
你好
安装
方法一
- 直接下载可执行文件至 /usr/local/bin 目录下
mac
linux
- 赋予可执行权限
- 检查环境变量
- 运行测试
方法二
# mac 下执行:
> cd /usr/local/bin &&
curl -o fy https://tering.gitee.io/exec/mac/fy &&
sudo chmod 555 fy
# linux 下执行:
> cd /usr/local/bin &&
curl -o fy https://tering.gitee.io/exec/linux/fy &&
sudo chmod 555 fy
方法三
- 安装 go
- 运行
> go install gitee.com/tering/translate-cli/fy
码云特技
- 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
- 码云官方博客 blog.gitee.com
- 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
- GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
- 码云官方提供的使用手册 https://gitee.com/help
- 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
Directories
¶
Click to show internal directories.
Click to hide internal directories.