github.com/keybase/client/go@v0.0.0-20240520164431-4f512a4c85a3/client/commands_common.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  // this is the list of commands for all versions of the client.
     5  package client
     6  
     7  import (
     8  	"sort"
     9  
    10  	"github.com/keybase/cli"
    11  	"github.com/keybase/client/go/libcmdline"
    12  	"github.com/keybase/client/go/libkb"
    13  )
    14  
    15  func GetCommands(cl *libcmdline.CommandLine, g *libkb.GlobalContext) []cli.Command {
    16  	ret := []cli.Command{
    17  		NewCmdAccount(cl, g),
    18  		NewCmdAPICall(cl, g),
    19  		NewCmdBase62(cl, g),
    20  		NewCmdBlocks(cl, g),
    21  		NewCmdBot(cl, g),
    22  		NewCmdBTC(cl, g),
    23  		NewCmdCA(cl, g),
    24  		NewCmdChat(cl, g),
    25  		NewCmdCompatDir(cl, g),
    26  		NewCmdCompatPush(cl, g),
    27  		NewCmdConfig(cl, g),
    28  		NewCmdCtl(cl, g),
    29  		NewCmdCurrency(cl, g),
    30  		NewCmdDb(cl, g),
    31  		NewCmdDecrypt(cl, g),
    32  		NewCmdDeprovision(cl, g),
    33  		NewCmdDevice(cl, g),
    34  		NewCmdDismiss(cl, g),
    35  		NewCmdDismissCategory(cl, g),
    36  		NewCmdDumpKeyfamily(cl, g),
    37  		NewCmdDumpPushNotifications(cl, g),
    38  		NewCmdEncrypt(cl, g),
    39  		NewCmdFNMR(cl, g),
    40  		NewCmdGit(cl, g),
    41  		NewCmdHome(cl, g),
    42  		NewCmdID(cl, g),
    43  		NewCmdInterestingPeople(cl, g),
    44  		NewCmdKVStore(cl, g),
    45  		NewCmdListTracking(cl, g),
    46  		NewCmdListTrackers(cl, g),
    47  		NewCmdLog(cl, g),
    48  		NewCmdLogin(cl, g),
    49  		NewCmdLogout(cl, g),
    50  		NewCmdOneshot(cl, g),
    51  		NewCmdPaperKey(cl, g),
    52  		NewCmdPassphrase(cl, g),
    53  		NewCmdPGP(cl, g),
    54  		NewCmdPing(cl, g),
    55  		NewCmdPprof(cl, g),
    56  		NewCmdProve(cl, g),
    57  		NewCmdRekey(cl, g),
    58  		NewCmdRIIT(cl, g),
    59  		newCmdScript(cl, g, !libkb.BuildTagProduction),
    60  		NewCmdSelfProvision(cl, g),
    61  		NewCmdSign(cl, g),
    62  		NewCmdSigs(cl, g),
    63  		NewCmdSignup(cl, g),
    64  		NewCmdSimpleFS(cl, g),
    65  		NewCmdStatus(cl, g),
    66  		NewCmdTeam(cl, g),
    67  		NewCmdTrack(cl, g),
    68  		NewCmdUnlock(cl, g),
    69  		NewCmdUntrack(cl, g),
    70  		NewCmdUpdate(cl, g),
    71  		NewCmdUPAK(cl, g),
    72  		NewCmdVerify(cl, g),
    73  		NewCmdVersion(cl, g),
    74  		newCmdWallet(cl, g),
    75  		newCmdWebAuthToken(cl, g),
    76  		newCmdWebOfTrust(cl, g),
    77  		newCmdUploadAvatar(cl, g, true /* hidden */),
    78  		NewCmdAudit(cl, g),
    79  		NewCmdWhoami(cl, g),
    80  		NewCmdNetworkStats(cl, g),
    81  	}
    82  	ret = append(ret, getBuildSpecificCommands(cl, g)...)
    83  	ret = append(ret, getPlatformSpecificCommands(cl, g)...)
    84  
    85  	sort.Sort(cli.ByName(ret))
    86  	return ret
    87  }