genie exec resume rejects --approve-for-me and -C after the subcommand

オープン
#8 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cli
領域
cli

調査の方向性

Start by reading the genie exec and resume command definitions and the CLI argument parsing tests. Reproduce the reported ordering with --approve-for-me and -C, then check how options are declared for the parent command and subcommand. Done when both options work after resume, or the help output clearly explains their required position.

索引モデルが issue の本文から書いたものです。

説明

Release version

v0.3.0

What happened?

genie exec resume rejects the parent exec options when they come after the subcommand.

$ genie exec resume <session-id> --approve-for-me "noop"
error: unexpected argument '--approve-for-me' found

$ genie exec resume <session-id> -C /tmp "noop"
error: unexpected argument '-C' found

The same options work when placed before resume:

genie exec --approve-for-me -C <dir> --json resume <session-id> -

genie exec resume --help does not list --approve-for-me or -C, and it does not say that they must come before the subcommand. I found the working order by trial and error.

Expected: accept these options in either position, or document the required order in genie exec resume --help.

Steps to reproduce
  1. Run any genie exec session and note its session ID.
  2. Run genie exec resume <session-id> --approve-for-me "noop".
  3. The command fails with unexpected argument.
  4. Run genie exec --approve-for-me resume <session-id> "noop". This form works.
Environment

macOS (Apple silicon), Genie Code CLI installed with install.sh.

主要言語
言語のデータがありません
スター
13
フォーク
1
平均マージ
35分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

databricks/genie-code-cli のほかの issue

databricks/genie-code-cli の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。