理由はありません

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2026-01-22 16:46:37 -03:00
parent 618908f54b
commit 8f24b2f36b
5 changed files with 16 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ var logoutCmd = &cobra.Command{
Use: "logout",
Short: "Log out from WriteFreely, invalidating the token",
Run: func(_ *cobra.Command, args []string) {
DoLogout(args)
Logout(args)
},
}
@@ -20,7 +20,9 @@ func init() {
rootCmd.AddCommand(logoutCmd)
}
func DoLogout(args []string) {
// Un-authenticates a user with WriteFreely, permanently
// invalidating the access token used with the request.
func Logout(args []string) {
c := writefreely.NewClient(Config.Host)
c.SetToken(Config.Token)