Skip to content

Commit 13a5fe8

Browse files
committed
Rename command function names to avoid conflict with module names #280
Signed-off-by: Thomas Druez <[email protected]>
1 parent a0d74fd commit 13a5fe8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/attributecode/cmd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def cli():
115115

116116
@click.help_option('-h', '--help')
117117

118-
def inventory(location, output, quiet, format):
118+
def inventory_cmd(location, output, quiet, format):
119119
"""
120120
Collect a JSON or CSV inventory of components from .ABOUT files.
121121
@@ -183,7 +183,7 @@ def inventory(location, output, quiet, format):
183183

184184
@click.help_option('-h', '--help')
185185

186-
def gen(location, output, mapping, license_notice_text_location, fetch_license, quiet):
186+
def gen_cmd(location, output, mapping, license_notice_text_location, fetch_license, quiet):
187187
"""
188188
Generate .ABOUT files in OUTPUT directory from a JSON or CSV inventory of .ABOUT files at LOCATION.
189189
@@ -249,7 +249,7 @@ def gen(location, output, mapping, license_notice_text_location, fetch_license,
249249

250250
@click.help_option('-h', '--help')
251251

252-
def attrib(location, output, template, mapping, inventory, quiet):
252+
def attrib_cmd(location, output, template, mapping, inventory, quiet):
253253
"""
254254
Generate an attribution document at OUTPUT using .ABOUT files at LOCATION.
255255
@@ -297,7 +297,7 @@ def attrib(location, output, template, mapping, inventory, quiet):
297297

298298
@click.help_option('-h', '--help')
299299

300-
def check(location, show_all):
300+
def check_cmd(location, show_all):
301301
"""
302302
Check and validate .ABOUT file(s) at LOCATION for errors and
303303
print error messages on the terminal.

0 commit comments

Comments
 (0)