File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77import click
88from click_plugins import with_plugins
99from pkg_resources import iter_entry_points
10- from py42 .settings import set_user_agent_suffix
10+ from py42 .settings import set_user_agent_prefix
1111
1212from code42cli import BANNER
1313from code42cli import PRODUCT_NAME
14+ from code42cli .__version__ import __version__
1415from code42cli .click_ext .groups import ExceptionHandlingGroup
1516from code42cli .cmds .alert_rules import alert_rules
1617from code42cli .cmds .alerts import alerts
@@ -39,7 +40,7 @@ def exit_on_interrupt(signal, frame):
3940
4041# Sets part of the user agent string that py42 attaches to requests for the purposes of
4142# identifying CLI users.
42- set_user_agent_suffix ( PRODUCT_NAME )
43+ set_user_agent_prefix ( f" { PRODUCT_NAME } / { __version__ } (Code42; code42.com )" )
4344
4445CONTEXT_SETTINGS = {
4546 "help_option_names" : ["-h" , "--help" ],
You can’t perform that action at this time.
0 commit comments