Peertube_auth.CmdCmdliner commands for PeerTube CLI.
This module provides the command-line interface for authentication and other common operations.
val profile_arg : string option Cmdliner.Term.tProfile name argument for cmdliner.
val server_url_arg : string Cmdliner.Term.tServer URL argument for cmdliner.
val username_arg : string Cmdliner.Term.tUsername argument for cmdliner.
val password_arg : string option Cmdliner.Term.tPassword argument for cmdliner.
val requests_config_term :
Eio.Fs.dir_ty Eio.Path.t ->
Requests.Cmd.config Cmdliner.Term.tRequests config term.
val auth_cmd :
< clock : _ Eio.Time.clock
; fs : Eio.Fs.dir_ty Eio.Path.t
; net : _ Eio.Net.t.. > ->
Eio.Fs.dir_ty Eio.Path.t ->
int Cmdliner.Cmd.tauth_cmd env fs returns the auth command group containing login, logout, status, and profiles.
val with_client :
sw:Eio.Switch.t ->
env:
< clock : _ Eio.Time.clock
; fs : Eio.Fs.dir_ty Eio.Path.t
; net : _ Eio.Net.t.. > ->
fs:Eio.Fs.dir_ty Eio.Path.t ->
?requests_config:Requests.Cmd.config ->
?profile:string ->
(Client.t -> 'a) ->
'awith_client ~sw ~env ~fs ?requests_config ?profile f loads a session and creates a client, then calls f with the client. Exits with an error if not logged in.