Skip to content

未実装のview commandがexit 0で成功扱いになる #25

Description

@mimo-3

概要

notion view get/list はhelpに公開されていますが、引数を無視して「未実装」とstderrへ出すだけでexit 0になります。

該当箇所

  • src/cli/view.rs — get/list subcommandを公開
  • src/api/views.rs:1 — placeholderのみ
  • src/main.rs:91-94 — command内容を捨てて Ok(())

再現

notion view get 00000000-0000-0000-0000-000000000000
echo $?
# 0

影響

shell scriptやCIは成功と判断し、取得済みだと思って後続処理へ進みます。CLI contractとして偽成功です。

修正案

  • 実装までview commandを公開CLIから外す、またはtypedなNotImplemented errorで非0終了する
  • 実装する場合は2026-03-11の /v1/views 契約に合わせる
  • stdout/stderr/exit codeを含むCLI integration testを追加する

完了条件

  • 未実装commandがexit 0にならない
  • helpに出るcommandは実際に動作する

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions