argparse - argparse - fishのスクリプトや関数に渡されるオプションの解析
このコマンドはfishのスクリプトや関数が,fishのビルトイン関数が引数を扱うのと100%同じ方法で引数を取り扱うのを簡単にします.
ユーザは有効なオプションを定義する引数の組を渡し,リテラル--
を続け,その後に解析される引数(リテラル--
を含んでもよい)を渡します.
これに関する詳細は以下の「使い方」の節で述べます.
function help-ja --description 'Show Japanese help for the fish shell' | |
set -l topics (builtin -n) tutorial document-ja faq-ja design-document-ja | |
set -l home 'http://fish.rubikitch.com' | |
switch "$argv[1]" | |
case -h --h --he --hel --help | |
echo 'Usage: help-ja [TOPIC]' | |
case $topics | |
open "$home/$argv[1]" | |
case '*' |
""" | |
icecream ライブラリのサンプル | |
REFERENCES:: | |
https://github.com/gruns/icecream | |
""" | |
import collections | |
import contextlib as ctx | |
import datetime |
# ~/.config/starship.toml | |
[battery] | |
full_symbol = "🔋" | |
charging_symbol = "🔌" | |
discharging_symbol = "⚡" | |
[[battery.display]] | |
threshold = 30 | |
style = "bold red" |
コミットメッセージのバリデーションには commitlint
( https://github.com/conventional-changelog/commitlint ) を使用します。
またコミットメッセージは次の規約に準拠します。
https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
コミットメッセージのフォーマットは次の通りです。