mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-22 05:00:40 +00:00
chore(deps): update dependency golangci/golangci-lint to v1.56.1 (#87)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
parent
656f744c52
commit
c6b5c9d03d
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
# renovate: datasource=github-releases depName=mvdan/gofumpt
|
# renovate: datasource=github-releases depName=mvdan/gofumpt
|
||||||
GOFUMPT_PACKAGE_VERSION := v0.6.0
|
GOFUMPT_PACKAGE_VERSION := v0.6.0
|
||||||
# renovate: datasource=github-releases depName=golangci/golangci-lint
|
# renovate: datasource=github-releases depName=golangci/golangci-lint
|
||||||
GOLANGCI_LINT_PACKAGE_VERSION := v1.55.2
|
GOLANGCI_LINT_PACKAGE_VERSION := v1.56.1
|
||||||
|
|
||||||
EXECUTABLE := url-parser
|
EXECUTABLE := url-parser
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ func main() {
|
|||||||
Action: command.Fragment(cfg),
|
Action: command.Fragment(cfg),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Before: func(ctx *cli.Context) error {
|
Before: func(_ *cli.Context) error {
|
||||||
if cfg.URL == "" {
|
if cfg.URL == "" {
|
||||||
stat, _ := os.Stdin.Stat()
|
stat, _ := os.Stdin.Stat()
|
||||||
if (stat.Mode() & os.ModeCharDevice) == 0 {
|
if (stat.Mode() & os.ModeCharDevice) == 0 {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// Fragment prints out the fragment part from the url.
|
// Fragment prints out the fragment part from the url.
|
||||||
func Fragment(cfg *config.Config) cli.ActionFunc {
|
func Fragment(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if len(parts.Scheme) > 0 {
|
if len(parts.Scheme) > 0 {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// Host prints out the host part from the url.
|
// Host prints out the host part from the url.
|
||||||
func Host(cfg *config.Config) cli.ActionFunc {
|
func Host(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if len(parts.Scheme) > 0 {
|
if len(parts.Scheme) > 0 {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// Password prints out the password part from url.
|
// Password prints out the password part from url.
|
||||||
func Password(cfg *config.Config) cli.ActionFunc {
|
func Password(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if parts.User != nil {
|
if parts.User != nil {
|
||||||
|
@ -23,7 +23,7 @@ func PathFlags(cfg *config.Config) []cli.Flag {
|
|||||||
|
|
||||||
// Path prints out the path part from url.
|
// Path prints out the path part from url.
|
||||||
func Path(cfg *config.Config) cli.ActionFunc {
|
func Path(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
i := cfg.PathIndex
|
i := cfg.PathIndex
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// Port prints out the port from the url.
|
// Port prints out the port from the url.
|
||||||
func Port(cfg *config.Config) cli.ActionFunc {
|
func Port(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if len(parts.Scheme) > 0 {
|
if len(parts.Scheme) > 0 {
|
||||||
|
@ -21,7 +21,7 @@ func QueryFlags(cfg *config.Config) []cli.Flag {
|
|||||||
|
|
||||||
// Query prints out the query part from url.
|
// Query prints out the query part from url.
|
||||||
func Query(cfg *config.Config) cli.ActionFunc {
|
func Query(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
f := cfg.QueryField
|
f := cfg.QueryField
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// Run default command and print out full url.
|
// Run default command and print out full url.
|
||||||
func Run(cfg *config.Config) cli.ActionFunc {
|
func Run(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if len(parts.String()) > 0 {
|
if len(parts.String()) > 0 {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// Scheme prints out the scheme part from the url.
|
// Scheme prints out the scheme part from the url.
|
||||||
func Scheme(cfg *config.Config) cli.ActionFunc {
|
func Scheme(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if len(parts.Scheme) > 0 {
|
if len(parts.Scheme) > 0 {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
// User prints out the user part from url.
|
// User prints out the user part from url.
|
||||||
func User(cfg *config.Config) cli.ActionFunc {
|
func User(cfg *config.Config) cli.ActionFunc {
|
||||||
return func(ctx *cli.Context) error {
|
return func(_ *cli.Context) error {
|
||||||
parts := parseURL(cfg.URL)
|
parts := parseURL(cfg.URL)
|
||||||
|
|
||||||
if parts.User != nil {
|
if parts.User != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user