lib/mix/tasks/hf.logout.ex
defmodule Mix.Tasks.Hf.Logout do
@shortdoc "Remove saved HuggingFace token from disk"
@moduledoc """
Removes the saved HuggingFace API token.
$ mix hf.logout
"""
use Mix.Task
@impl Mix.Task
def run(_) do
HuggingfaceClient.Config.delete_token()
Mix.shell().info("✓ Logged out — token removed")
end
end