diff --git a/docs/CLI.md b/docs/CLI.md index 49d87cd..0472336 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -71,7 +71,7 @@ Add a Gitea login **--token, -t**="": Access token. Can be obtained from Settings > Applications -**--url, -u**="": Server URL (default: https://gitea.com) +**--url, -u**="": Server URL (default: "https://gitea.com") **--user**="": User for basic auth (will create token) @@ -117,7 +117,7 @@ List, create and update issues **--fields, -f**="": Comma-separated list of fields to print. Available values: index,state,kind,author,author-id,url,title,body,created,updated,deadline,assignees,milestone,labels,comments,owner,repo - (default: index,title,state,author,milestone,labels,owner,repo) + (default: "index,title,state,author,milestone,labels,owner,repo") **--from, -F**="": Filter by activity after this date @@ -163,7 +163,7 @@ List issues of the repository **--fields, -f**="": Comma-separated list of fields to print. Available values: index,state,kind,author,author-id,url,title,body,created,updated,deadline,assignees,milestone,labels,comments,owner,repo - (default: index,title,state,author,milestone,labels,owner,repo) + (default: "index,title,state,author,milestone,labels,owner,repo") **--from, -F**="": Filter by activity after this date @@ -281,7 +281,7 @@ Manage and checkout pull requests **--fields, -f**="": Comma-separated list of fields to print. Available values: index,state,author,author-id,url,title,body,mergeable,base,base-commit,head,diff,patch,created,updated,deadline,assignees,milestone,labels,comments - (default: index,title,state,author,milestone,updated,labels) + (default: "index,title,state,author,milestone,updated,labels") **--limit, --lm**="": specify limit of items per page @@ -303,7 +303,7 @@ List pull requests of the repository **--fields, -f**="": Comma-separated list of fields to print. Available values: index,state,author,author-id,url,title,body,mergeable,base,base-commit,head,diff,patch,created,updated,deadline,assignees,milestone,labels,comments - (default: index,title,state,author,milestone,updated,labels) + (default: "index,title,state,author,milestone,updated,labels") **--limit, --lm**="": specify limit of items per page @@ -451,7 +451,7 @@ Merge a pull request **--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional -**--style, -s**="": Kind of merge to perform: merge, rebase, squash, rebase-merge (default: merge) +**--style, -s**="": Kind of merge to perform: merge, rebase, squash, rebase-merge (default: "merge") **--title, -t**="": Merge commit title @@ -551,7 +551,7 @@ List and create milestones **--fields, -f**="": Comma-separated list of fields to print. Available values: title,state,items_open,items_closed,items,duedate,description,created,updated,closed,id - (default: title,items,duedate) + (default: "title,items,duedate") **--limit, --lm**="": specify limit of items per page @@ -573,7 +573,7 @@ List milestones of the repository **--fields, -f**="": Comma-separated list of fields to print. Available values: title,state,items_open,items_closed,items,duedate,description,created,updated,closed,id - (default: title,items,duedate) + (default: "title,items,duedate") **--limit, --lm**="": specify limit of items per page @@ -653,7 +653,7 @@ manage issue/pull of an milestone **--fields, -f**="": Comma-separated list of fields to print. Available values: index,state,kind,author,author-id,url,title,body,created,updated,deadline,assignees,milestone,labels,comments,owner,repo - (default: index,kind,title,state,updated,labels) + (default: "index,kind,title,state,updated,labels") **--kind**="": Filter by kind (issue|pull) @@ -991,7 +991,7 @@ Show repository details **--fields, -f**="": Comma-separated list of fields to print. Available values: description,forks,id,name,owner,stars,ssh,updated,url,permission,type - (default: owner,name,type,ssh) + (default: "owner,name,type,ssh") **--limit, --lm**="": specify limit of items per page @@ -1013,7 +1013,7 @@ List repositories you have access to **--fields, -f**="": Comma-separated list of fields to print. Available values: description,forks,id,name,owner,stars,ssh,updated,url,permission,type - (default: owner,name,type,ssh) + (default: "owner,name,type,ssh") **--limit, --lm**="": specify limit of items per page @@ -1037,7 +1037,7 @@ Find any repo on an Gitea instance **--fields, -f**="": Comma-separated list of fields to print. Available values: description,forks,id,name,owner,stars,ssh,updated,url,permission,type - (default: owner,name,type,ssh) + (default: "owner,name,type,ssh") **--limit, --lm**="": specify limit of items per page @@ -1195,7 +1195,7 @@ Consult branches **--fields, -f**="": Comma-separated list of fields to print. Available values: name,protected,user-can-merge,user-can-push,protection - (default: name,protected,user-can-merge,user-can-push) + (default: "name,protected,user-can-merge,user-can-push") **--limit, --lm**="": specify limit of items per page @@ -1215,7 +1215,7 @@ List branches of the repository **--fields, -f**="": Comma-separated list of fields to print. Available values: name,protected,user-can-merge,user-can-push,protection - (default: name,protected,user-can-merge,user-can-push) + (default: "name,protected,user-can-merge,user-can-push") **--limit, --lm**="": specify limit of items per page @@ -1235,7 +1235,7 @@ Protect branches **--fields, -f**="": Comma-separated list of fields to print. Available values: name,protected,user-can-merge,user-can-push,protection - (default: name,protected,user-can-merge,user-can-push) + (default: "name,protected,user-can-merge,user-can-push") **--limit, --lm**="": specify limit of items per page @@ -1255,7 +1255,7 @@ Unprotect branches **--fields, -f**="": Comma-separated list of fields to print. Available values: name,protected,user-can-merge,user-can-push,protection - (default: name,protected,user-can-merge,user-can-push) + (default: "name,protected,user-can-merge,user-can-push") **--limit, --lm**="": specify limit of items per page @@ -1297,7 +1297,7 @@ Show notifications **--fields, -f**="": Comma-separated list of fields to print. Available values: id,status,updated,index,type,state,title,repository - (default: id,status,index,type,state,title) + (default: "id,status,index,type,state,title") **--limit, --lm**="": specify limit of items per page @@ -1315,7 +1315,7 @@ Show notifications **--states, -s**="": Comma-separated list of notification states to filter by. Available values: pinned,unread,read - (default: unread,pinned) + (default: "unread,pinned") **--types, -t**="": Comma-separated list of subject types to filter by. Available values: issue,pull,repository,commit @@ -1327,7 +1327,7 @@ List notifications **--fields, -f**="": Comma-separated list of fields to print. Available values: id,status,updated,index,type,state,title,repository - (default: id,status,index,type,state,title) + (default: "id,status,index,type,state,title") **--limit, --lm**="": specify limit of items per page @@ -1345,7 +1345,7 @@ List notifications **--states, -s**="": Comma-separated list of notification states to filter by. Available values: pinned,unread,read - (default: unread,pinned) + (default: "unread,pinned") **--types, -t**="": Comma-separated list of subject types to filter by. Available values: issue,pull,repository,commit @@ -1371,7 +1371,7 @@ Mark all filtered or a specific notification as read **--states, -s**="": Comma-separated list of notification states to filter by. Available values: pinned,unread,read - (default: unread,pinned) + (default: "unread,pinned") ### unread, u @@ -1393,7 +1393,7 @@ Mark all filtered or a specific notification as unread **--states, -s**="": Comma-separated list of notification states to filter by. Available values: pinned,unread,read - (default: unread,pinned) + (default: "unread,pinned") ### pin, p @@ -1415,7 +1415,7 @@ Mark all filtered or a specific notification as pinned **--states, -s**="": Comma-separated list of notification states to filter by. Available values: pinned,unread,read - (default: unread,pinned) + (default: "unread,pinned") ### unpin @@ -1437,7 +1437,7 @@ Unpin all pinned or a specific notification **--states, -s**="": Comma-separated list of notification states to filter by. Available values: pinned,unread,read - (default: unread,pinned) + (default: "unread,pinned") ## clone, C @@ -1457,7 +1457,7 @@ Manage registered users **--fields, -f**="": Comma-separated list of fields to print. Available values: id,login,full_name,email,avatar_url,language,is_admin,restricted,prohibit_login,location,website,description,visibility,activated,lastlogin_at,created_at - (default: id,login,full_name,email,activated) + (default: "id,login,full_name,email,activated") **--limit, --lm**="": specify limit of items per page @@ -1477,7 +1477,7 @@ List Users **--fields, -f**="": Comma-separated list of fields to print. Available values: id,login,full_name,email,avatar_url,language,is_admin,restricted,prohibit_login,location,website,description,visibility,activated,lastlogin_at,created_at - (default: id,login,full_name,email,activated) + (default: "id,login,full_name,email,activated") **--limit, --lm**="": specify limit of items per page diff --git a/go.mod b/go.mod index db7118c..4d3c080 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/olekukonko/tablewriter v0.0.5 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.25.7 + github.com/urfave/cli/v2 v2.27.3 golang.org/x/crypto v0.25.0 golang.org/x/term v0.22.0 gopkg.in/yaml.v3 v3.0.1 @@ -32,7 +32,7 @@ require ( github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/cloudflare/circl v1.3.7 // indirect - github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect github.com/cyphar/filepath-securejoin v0.2.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/davidmz/go-pageant v1.0.2 // indirect @@ -61,7 +61,7 @@ require ( github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect github.com/skeema/knownhosts v1.2.2 // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect - github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect github.com/yuin/goldmark v1.5.4 // indirect github.com/yuin/goldmark-emoji v1.0.2 // indirect golang.org/x/mod v0.17.0 // indirect diff --git a/go.sum b/go.sum index c781650..2914292 100644 --- a/go.sum +++ b/go.sum @@ -53,6 +53,8 @@ github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vc github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= @@ -178,10 +180,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= +github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M= +github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= +github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= +github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.7/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=