Check for CLI updates and install if available.
Wraps claude update (CLI alias upgrade). Takes no options.
Mutating command
update/1 runs claude update, which installs a newer build when one is
available, mutating the local installation. Call it deliberately.
Usage
config = ClaudeWrapper.Config.new()
{:ok, output} = ClaudeWrapper.Commands.Update.update(config)
Summary
Functions
Check for updates and install if available.
Functions
@spec update(ClaudeWrapper.Config.t()) :: {:ok, String.t()} | {:error, term()}
Check for updates and install if available.
Returns the CLI's output on success.