Skip to content

Added extkingpin module#10

Merged
bwplotka merged 1 commit intoefficientgo:mainfrom
saswatamcode:pathorcontent
Jun 9, 2021
Merged

Added extkingpin module#10
bwplotka merged 1 commit intoefficientgo:mainfrom
saswatamcode:pathorcontent

Conversation

@saswatamcode
Copy link
Copy Markdown
Collaborator

@saswatamcode saswatamcode commented Jun 9, 2021

This PR adds in the extkingpin module which provides the PathOrContent flag with environment variable substitution.

@bwplotka
Copy link
Copy Markdown
Contributor

bwplotka commented Jun 9, 2021

Can you run go mod tidy (see lint)?

@saswatamcode
Copy link
Copy Markdown
Collaborator Author

Sure! I did run it before raising PR but I think I set wrong go version(1.16).

Copy link
Copy Markdown
Contributor

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid, proposed one idea, otherwise LGTM!

README.md Outdated
bingo get -u github.com/efficientgo/tools/copyright
```

### Module `github.com/efficientgo/tools/extflag`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Module `github.com/efficientgo/tools/extflag`
### Module `github.com/efficientgo/tools/extkingpin

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

README.md Outdated

This module provides the PathOrContent flag type which defines two flags to fetch bytes. Either from file (\*-file flag) or content (\* flag). Also returns the content of a YAML file with substituted environment variables.

```go mdox-gen-exec="sh -c 'tail -n +6 extflag/doc.go'"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪🏽 How great is that! (:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😃

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
@saswatamcode saswatamcode changed the title Added extflag module Added extkingpin module Jun 9, 2021
Copy link
Copy Markdown
Contributor

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM 💪🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants