github.com/decred/politeia@v1.4.0/politeiawww/cmd/shared/secret.go (about) 1 // Copyright (c) 2017-2019 The Decred developers 2 // Use of this source code is governed by an ISC 3 // license that can be found in the LICENSE file. 4 5 package shared 6 7 // SecretCmd pings the politeiawww secret route. 8 type SecretCmd struct{} 9 10 // Execute executes the secret command. 11 func (cmd *SecretCmd) Execute(args []string) error { 12 ue, err := client.Secret() 13 if err != nil { 14 return err 15 } 16 return PrintJSON(ue) 17 }