github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/exit/command.go (about)

     1  package exit
     2  
     3  import (
     4  	"github.com/taubyte/tau-cli/singletons/session"
     5  	"github.com/urfave/cli/v2"
     6  )
     7  
     8  var Command = &cli.Command{
     9  	Name:    "tau",
    10  	Usage:   "Clears the current session",
    11  	Aliases: []string{"exit"},
    12  	Action:  Run,
    13  }
    14  
    15  func Run(c *cli.Context) error {
    16  	return session.Delete()
    17  }