Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xflags
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Application
xflags
Compare revisions
v1.1.0 to v1.1.1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
oss/libraries/go/application/xflags
Select target project
No results found
v1.1.1
Select Git revision
Swap
Target
oss/libraries/go/application/xflags
Select target project
oss/libraries/go/application/xflags
1 result
v1.1.0
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (4)
doc: shadow described
· b96b4adf
Volker Schukai
authored
2 years ago
b96b4adf
fix repository_url was wrong
· 0b026ffe
Volker Schukai
authored
2 years ago
0b026ffe
Bump version to 1.1.1
· dab7f273
Volker Schukai
authored
2 years ago
dab7f273
Update changelog
· 12c64750
Volker Schukai
authored
2 years ago
12c64750
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.chglog/config.yml
+1
-1
1 addition, 1 deletion
.chglog/config.yml
CHANGELOG.md
+8
-1
8 additions, 1 deletion
CHANGELOG.md
README.md
+25
-1
25 additions, 1 deletion
README.md
release.json
+1
-1
1 addition, 1 deletion
release.json
with
35 additions
and
4 deletions
.chglog/config.yml
View file @
12c64750
...
...
@@ -2,7 +2,7 @@ style: gitlab
template
:
CHANGELOG.tpl.md
info
:
title
:
CHANGELOG
repository_url
:
https://gitlab.schukai.com/oss/libraries/go/application/
configuration
repository_url
:
https://gitlab.schukai.com/oss/libraries/go/application/
xflags
options
:
commits
:
filters
:
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
View file @
12c64750
<a
name=
"v1.1.1"
></a>
## [v1.1.1] - 2022-10-05
### Bug Fixes
-
fix repository_url was wrong
<a
name=
"v1.1.0"
></a>
## [v1.1.0] - 2022-10-05
<a
name=
"v1.0.0"
></a>
## v1.0.0 - 2022-10-04
[
v1.1.0
]:
https://gitlab.schukai.com/oss/libraries/go/application/configuration/compare/v1.0.0...v1.1.0
[
v1.1.1
]:
https://gitlab.schukai.com/oss/libraries/go/application/xflags/compare/v1.1.0...v1.1.1
[
v1.1.0
]:
https://gitlab.schukai.com/oss/libraries/go/application/xflags/compare/v1.0.0...v1.1.0
This diff is collapsed.
Click to expand it.
README.md
View file @
12c64750
...
...
@@ -65,9 +65,9 @@ The following tags are supported:
|
`required`
| Value | Flag is required. |
|
`command`
| Command | Flag is a command. |
|
`call`
| Command | Function to call when the command is used. |
|
`shadow`
| Value | Copy the value to the shadow structure. |
|
`ignore`
| -/- | Property is ignored. |
### Callbacks
The functions are called up with a receiver. The receiver is the
...
...
@@ -143,6 +143,30 @@ The function `Execute()` executes the command. See the section
setting
.
Execute
()
```
### Shadow
The shadow structure is used to copy the values of the flags to the
shadow structure. The shadow structure is set using the
`SetShadow()`
and configured using the tag
`shadow`
.
```
go
type
Shadow
struct
{
Verbose
bool
Serve
struct
{
Host
string
Port
int
}
}
func
main
()
{
setting
:=
New
(
os
.
Args
[
0
],
Definition
{})
setting
.
SetShadow
(
Shadow
{})
setting
.
Parse
(
os
.
Args
[
1
:
])
setting
.
Execute
()
fmt
.
Printf
(
"Shadow: %+v"
,
setting
.
GetShadow
())
}
```
## Contributing
Merge requests are welcome. For major changes, please open an issue first to discuss what
...
...
This diff is collapsed.
Click to expand it.
release.json
View file @
12c64750
{
"version"
:
"1.1.
0
"
}
{
"version"
:
"1.1.
1
"
}
This diff is collapsed.
Click to expand it.