name: gog-calendar description: gog CLI で Google Calendar の予定を確認し、認証・TTY・keyring の問題を切り分ける手順。ユーザーが「今日の予定を確認したい」「gog でカレンダーを見たい」「calendar events のエラーを直したい」と依頼したときに使う。
Gog Calendar Events Check
最短チェック(今日の予定)
/home/yuiseki/bin/gog --account <email> calendar events primary --today --plain --all-pages --max 50
- 予定があるかだけ確認する場合:
/home/yuiseki/bin/gog --account <email> calendar events primary --today --max 1 --plain --fail-empty
exit code 0: 1件以上ありexit code 3:--fail-emptyで0件
この環境で分かったこと(2026-02-19)
- 実行バイナリは
./bin/gogではなく/home/yuiseki/bin/gog。 - config path は
/home/yuiseki/.config/gogcli/config.json。 - keyring backend は
file。 - 非 TTY ではトークン読込が失敗することがある:
no TTY available for keyring file backend password prompt; set GOG_KEYRING_PASSWORD
- 利用アカウントは
yuiseki@gmail.com。 calendar events ... --plainの出力列はID START END SUMMARY。
手順
- コマンド仕様を確認する。
/home/yuiseki/bin/gog calendar events --help
- 認証状態と keyring backend を確認する。
/home/yuiseki/bin/gog auth status
/home/yuiseki/bin/gog auth keyring
--accountを明示して予定を取得する。
/home/yuiseki/bin/gog --account <email> calendar events primary --today --plain --all-pages --max 50
- keyring のパスフレーズ入力待ちになったら TTY で実行する。
- 非対話で実行する場合は
GOG_KEYRING_PASSWORDを設定する。
次から活用できるノウハウ
- 「有無だけ判定」は
--max 1 --fail-emptyを使う。 - 「今日の全件取得」は
--today --all-pages --max <十分な件数>を使う。 - 自動化用途は
--json --no-inputを基本にする。 - 全カレンダー横断が必要なら
calendar events --all --todayを使う。 - 期間指定が必要なら
--from/--toまたは--days/--weekを使う。 - テキスト絞り込みは
--queryを使う。
Skills similaires
Priorisation de Tâches
Productivite
Priorise vos tâches avec les frameworks Eisenhower, ICE et RICE.
claudechatgptbeginner
241
67
726
Generateur de Rapport Hebdomadaire
Productivite
Generez des rapports de statut hebdomadaires structures et concis.
Claude CodeCursorWindsurf+1beginner
234
78
755
Rapport de Daily Standup
Productivite
Génère des rapports de daily standup structurés et concis.
claudeCursorWindsurfbeginner
178
45
594