关于
:page_facing_up: 在命令行中阅读 RFC
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文rfc
rfc is a simple tool written in Bash to read RFCs from the
command-line. It fetches RFCs and drafts from the Web and caches them
locally.
Usage
Just type rfc followed by the RFC number or the draft name:
$ rfc <RFC number>
e.g.:
rfc 42 # Read the RFC 42
rfc 1234 # Read the RFC 1234
rfc draft-ietf-core-coap-18 # Read IETF draft core-coap version 18
Use rfc help to see all available subcommands.
Options
--version: same as theversionsubcommand--help: same as thehelpsubcommand
Exit codes
0: normal execution1: the requested RFC or archive cannot be found2: unrecognized option/subcommand3: unable to connect to the network4: can't findcurlnorwget5:rfc synccan’t findrsync
Install
Basic install
mkdir -p ~/bin
curl -sL https://raw.githubusercontent.com/bfontaine/rfc/v2.0.1/rfc > ~/bin/rfc
chmod u+x ~/bin/rfc
This creates the ~/bin directory if it doesn’t exist, and download rfc in it.
If it’s not in your PATH, you have to add it:
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
You may also want to install the manpage, located in man/rfc.1.
Using Homebrew
If you use Homebrew or Linuxbrew you
can install rfc with one command:
brew install bfontaine/utils/rfc
Archlinux
For archlinux users, you can use the AUR package rfc-read.
The command for use it is rfc.
openSUSE
The openSUSE package is called rfc-read
and can be installed via zypper in rfc-read.
Requirements
- Bash 3.2+
curlorwget. It uses$CURLif it’s set, and fallback oncurland thenwget.lessor another pager. It uses$PAGERif it’s set.rsynconly if you want to userfc sync
Customization
You can choose which directory rfc uses by setting the RFC_DIR environment
variable. The directory is automatically created if it doesn’t exist.
The default directory is $XDG_CACHE_HOME/RFCs if XDG_CACHE_HOME is set, otherwise ~/.cache/RFCs.
Troubleshooting
rfc version 0.2.5 and above has a special --debug flag that, if passed as
the first argument, enables tracing of all the Bash commands in the script.
Credits
Baptiste Fontaine and contributors.
探索相关项目
加载中…