class

Smith::TrustPrompt

Inherits Reference < Object

Asks once, then remembers. Deliberately separate from Tools::Approver: --yes waives approval for tools the model chose, which is not the same as waiving it for code a repository brought with it. Only the explicit --trust-hooks does that.

Constructors

new(store : TrustStore, input : IO = STDIN, output : IO = STDOUT, preapproved : Bool = false)
Source

Instance methods

allow?(project_path : String, digest : String, commands : Array(String)) : Bool
Source