Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
017f8e87
Commit
017f8e87
authored
Jan 07, 2019
by
André Anjos
💬
Browse files
[scripts][changelog] Simplify command line
parent
464e6ab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/devtools/scripts/changelog.py
View file @
017f8e87
...
...
@@ -24,9 +24,9 @@ Examples:
$ bdt -vvv changelog group/package.xyz changelog.md
2. The same as above, but dumps the changelog to stdout instead of a file
2. The same as above, but dumps the changelog to stdout instead of a file
:
$ bdt -vvv changelog group/package.xyz
-
$ bdt -vvv changelog group/package.xyz
3. Generates the changelog for a single package looking at commits
...
...
@@ -51,7 +51,7 @@ Examples:
'''
)
@
click
.
argument
(
'target'
)
@
click
.
argument
(
'changelog'
,
type
=
click
.
Path
(
exists
=
False
,
dir_okay
=
False
,
file_okay
=
True
,
writable
=
True
))
file_okay
=
True
,
writable
=
True
)
,
required
=
False
)
@
click
.
option
(
'-g'
,
'--group'
,
default
=
'bob'
,
show_default
=
True
,
help
=
'Gitlab default group name where packages are located (if not '
\
'specified using a "/" on the package name - e.g. '
\
...
...
@@ -137,7 +137,7 @@ def changelog(target, changelog, group, mode, since):
'|'
.
join
(
visibility
))
continue
if
changelog
==
'-'
:
if
(
not
changelog
)
or
(
changelog
==
'-'
)
:
changelog_file
=
sys
.
stdout
else
:
changelog_file
=
open
(
changelog
,
'at'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment