Injectable boundary for the New File command's fallible effects.
The command owns operation ordering and editor-state transitions. A backend only performs the requested filesystem or buffer operation so failures remain deterministic in tests.
Summary
Types
@type t() :: module()
Callbacks
@callback mkdir_p(String.t()) :: :ok | {:error, File.posix()}
@callback open_buffer(String.t(), Minga.Config.Options.server(), Minga.Events.registry()) :: {:ok, pid()} | {:error, term()}
@callback touch(String.t()) :: :ok | {:error, File.posix()}