Skip to content

Commit

Permalink
Merge pull request #1450 from rsteube/style-tags
Browse files Browse the repository at this point in the history
style: added tags
  • Loading branch information
rsteube authored Dec 15, 2022
2 parents 4065352 + fa19b0f commit 28b9c80
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
38 changes: 19 additions & 19 deletions pkg/styles/carapace-bin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ package styles
import "github.com/rsteube/carapace/pkg/style"

var CarapaceBin = struct {
HttpStatusInformational string `desc:"http informational"`
HttpStatusSuccessful string `desc:"http successful"`
HttpStatusRedirection string `desc:"http redirection"`
HttpStatusClientError string `desc:"http client error"`
HttpStatusServerError string `desc:"http server error"`
HttpStatusInformational string `desc:"http informational" tag:"http status styles"`
HttpStatusSuccessful string `desc:"http successful" tag:"http status styles"`
HttpStatusRedirection string `desc:"http redirection" tag:"http status styles"`
HttpStatusClientError string `desc:"http client error" tag:"http status styles"`
HttpStatusServerError string `desc:"http server error" tag:"http status styles"`

HttpMethodCONNECT string `desc:"http CONNECT method"`
HttpMethodDELETE string `desc:"http DELETE method"`
HttpMethodGET string `desc:"http GET method"`
HttpMethodHEAD string `desc:"http HEAD method"`
HttpMethodOPTIONS string `desc:"http OPTIONS method"`
HttpMethodPATCH string `desc:"http PATCH method"`
HttpMethodPOST string `desc:"http POST method"`
HttpMethodPUT string `desc:"http PUT method"`
HttpMethodTRACE string `desc:"http TRACE method"`
HttpMethodCONNECT string `desc:"http CONNECT method" tag:"http method styles"`
HttpMethodDELETE string `desc:"http DELETE method" tag:"http method styles"`
HttpMethodGET string `desc:"http GET method" tag:"http method styles"`
HttpMethodHEAD string `desc:"http HEAD method" tag:"http method styles"`
HttpMethodOPTIONS string `desc:"http OPTIONS method" tag:"http method styles"`
HttpMethodPATCH string `desc:"http PATCH method" tag:"http method styles"`
HttpMethodPOST string `desc:"http POST method" tag:"http method styles"`
HttpMethodPUT string `desc:"http PUT method" tag:"http method styles"`
HttpMethodTRACE string `desc:"http TRACE method" tag:"http method styles"`

KillSignalTerm string `desc:"Default action is to terminate the process"`
KillSignalIgn string `desc:"Default action is to ignore the signal"`
KillSignalCore string `desc:"Default action is to terminate the process and dump core"`
KillSignalStop string `desc:"Default action is to stop the proces"`
KillSignalCont string `desc:"Default action is to continue the process if it is currently stopped"`
KillSignalTerm string `desc:"Default action is to terminate the process" tag:"kill signal styles"`
KillSignalIgn string `desc:"Default action is to ignore the signal" tag:"kill signal styles"`
KillSignalCore string `desc:"Default action is to terminate the process and dump core" tag:"kill signal styles"`
KillSignalStop string `desc:"Default action is to stop the proces" tag:"kill signal styles"`
KillSignalCont string `desc:"Default action is to continue the process if it is currently stopped" tag:"kill signal styles"`
}{
HttpStatusInformational: style.Blue,
HttpStatusSuccessful: style.Green,
Expand Down
32 changes: 16 additions & 16 deletions pkg/styles/gh.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ package styles
import "github.com/rsteube/carapace/pkg/style"

type gh struct {
Draft string `desc:"draft pulls"`
JobFailed string `desc:"jobs not finished successfully"`
JobInProgress string `desc:"jobs in progress"`
JobSuccess string `desc:"jobs successfully finished"`
OwnerOrganization string `desc:"organization"`
OwnerUser string `desc:"user"`
RepoArchived string `desc:"archived repository"`
RepoFork string `desc:"forked repository"`
RepoLocked string `desc:"locked repository"`
RepoMirror string `desc:"mirror repository"`
RepoPrivate string `desc:"private repository"`
RepoPublic string `desc:"public repository"`
RepoTemplate string `desc:"template repository"`
StateClosed string `desc:"closed issues/pulls"`
StateMerged string `desc:"merged pulls"`
StateOpen string `desc:"open issues/pulls"`
Draft string `desc:"draft pulls" tag:"issue styles"`
JobFailed string `desc:"jobs not finished successfully" tag:"job styles"`
JobInProgress string `desc:"jobs in progress" tag:"job styles"`
JobSuccess string `desc:"jobs successfully finished" tag:"job styles"`
OwnerOrganization string `desc:"organization" tag:"owner styles"`
OwnerUser string `desc:"user" tag:"owner styles"`
RepoArchived string `desc:"archived repository" tag:"repo styles"`
RepoFork string `desc:"forked repository" tag:"repo styles"`
RepoLocked string `desc:"locked repository" tag:"repo styles"`
RepoMirror string `desc:"mirror repository" tag:"repo styles"`
RepoPrivate string `desc:"private repository" tag:"repo styles"`
RepoPublic string `desc:"public repository" tag:"repo styles"`
RepoTemplate string `desc:"template repository" tag:"repo styles"`
StateClosed string `desc:"closed issues/pulls" tag:"issue styles"`
StateMerged string `desc:"merged pulls" tag:"issue styles"`
StateOpen string `desc:"open issues/pulls" tag:"issue styles"`
}

var Gh = gh{
Expand Down

0 comments on commit 28b9c80

Please sign in to comment.