From b89ed9664164b4b37333f60553f55923d58f8ca3 Mon Sep 17 00:00:00 2001 From: gopikrishna7 Date: Tue, 3 Oct 2023 22:29:06 +0530 Subject: [PATCH] added example usage for logout Signed-off-by: gopikrishna7 --- cmd/argocd/commands/logout.go | 2 +- docs/user-guide/commands/argocd_logout.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/argocd/commands/logout.go b/cmd/argocd/commands/logout.go index 9bc4f9f772df85..6e8881bcdbe676 100644 --- a/cmd/argocd/commands/logout.go +++ b/cmd/argocd/commands/logout.go @@ -17,7 +17,7 @@ var ( # Logout from a context argocd logout localhost:8080 - #Get list of contexts + # Get list of contexts argocd context `) ) diff --git a/docs/user-guide/commands/argocd_logout.md b/docs/user-guide/commands/argocd_logout.md index 9620754452cc6a..2d9d4651231352 100644 --- a/docs/user-guide/commands/argocd_logout.md +++ b/docs/user-guide/commands/argocd_logout.md @@ -12,6 +12,16 @@ Log out from Argo CD argocd logout CONTEXT [flags] ``` +### Examples + +``` + # Logout from a context + argocd logout localhost:8080 + + # Get list of contexts + argocd context +``` + ### Options ```