-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update some stuff, add show-analytics command
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,20 +30,22 @@ def __init__(self): | |
''' | ||
|
||
print("PROS CLI collects analytics while in use in order to better understand how people use PROS and improve this software. The data collected is as follows:\n 1) Commands being run\n 2) Non identifying command arguments\n 3) Granular location data (through google analytics).") | ||
print("PROS CLI collects analytics while in use in order to better understand how people use PROS and improve this software. The data collected is as follows:\n 1) Commands being run\n 2) Non identifying command arguments.") | ||
print("The scope of collected data may be expanded in the future. To see what data is actively being collected, run the command `pros --show-analytics`") | ||
print("We do not collect any personal information, or specifics of your projects, file paths, etc.") | ||
print("You may opt out of analytics at any time by running `pros --use-analytics False`, or may opt out for a single command by adding the `--no-analytics` flag.") | ||
print("For questions or concerns, please contact us at [email protected]\n") | ||
response = None | ||
response = input("Do you choose to opt in to analytics? (y/N): ").lower() | ||
while response not in ["y", "n"]: | ||
print("Invalid response. Please enter y or n.") | ||
response = input("Do you choose to opt in to analytics? (y/N): ").lower() | ||
|
||
if response == "y": | ||
response = "True" | ||
print("Thank you for opting in to analytics! You may opt out at any time by running `pros --use-analytics False`, or for a specific command by adding the `--no-analytics` flag.") | ||
print("Thank you for opting in to analytics! You may opt out at any time by running the command `pros --use-analytics False`, or for a specific command by adding the `--no-analytics` flag.") | ||
else: | ||
response = "False" | ||
print("You have opted out of analytics. You may opt back in at any time by running `pros --use-analytics True`.") | ||
print("You have opted out of analytics. You may opt back in at any time by running the command `pros --use-analytics True`.") | ||
# Default values for GA | ||
# generate a unix timestamp | ||
self.cli_config.ga = { | ||
|