aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-11-10Increase version v0.0.3 -> v0.0.4HEADv0.0.4masterTeddy Wing
2023-11-10cws-status: Show error message when regex input does not match itemsTeddy Wing
When no extension items were matched by the input regex, we previously ran into a runtime error that wasn't obvious. Instead print an error message explaining what the problem is.
2023-08-08Increase version v0.0.2 -> v0.0.3v0.0.3Teddy Wing
2023-08-08cws-status: Fix out of bounds error on `item_statuses`Teddy Wing
In some cases, `item_statuses` can be shorter than `item_names_versions`. I didn't look into why, just decided to add a quick fix for the bounds error so the program could keep working again without crashing. This seems to fix the problem I had, but it may need to be revisited further down the line.
2023-08-08cws-status: Investigate out of bounds errorTeddy Wing
Sometimes I was getting the following exception which caused the program to fail: $ cws-status 'AODocs - Universal' Traceback (most recent call last): File ".../cws-status/cws-status", line 117, in <module> matched_extensions.append((name, item_statuses[i])) IndexError: list index out of range Add a couple of print statements to see what's going on.
2023-05-15Increase version v0.0.1 -> v0.0.2v0.0.2Teddy Wing
2023-05-15cws-status: Add new logged out checkTeddy Wing
There's another instance when the user can be logged out and the "Sign in to continue" string doesn't appear on the page. Also report this as a logged out error.
2022-06-25cws-status: Exit with code `EX_USAGE` on argument parse errorv0.0.1Teddy Wing
I tried catching the `argparse.ArgumentError` as described here, but that didn't seem to work: https://docs.python.org/3.9/library/argparse.html#exit-on-error When I wrapped `args = argparser.parse_args()` in a `try` block, it raised a `SystemExit` exception instead of `argparse.ArgumentError`. Take inspiration from some of the suggestions in this Stack Overflow answer: https://stackoverflow.com/questions/5943249/python-argparse-and-controlling-overriding-the-exit-status-code Since we just want to change the exit code, call `argparse.ArgumentParser`'s `error()` method and exit with the error code we want.
2022-06-25cws-status: Fix typo in command line help descriptionTeddy Wing
2022-06-25cws-status: Align extension name and version in two columnsTeddy Wing
Rather than output a single tab to separate the extension name and version, use `ljust` to create two visual columns.
2022-06-25Add READMETeddy Wing
2022-06-25cws-status: Add program version and `--version` command line argumentTeddy Wing
2022-06-25cws-status: Add trailing commasTeddy Wing
2022-06-25cws-status: Match regex anywhere in the nameTeddy Wing
I didn't realise that `re.match()` only matches starting at the beginning of the string rather than matching anywhere inside it: https://docs.python.org/3/library/re.html#re.match Switch to `re.search()` to get the desired behaviour.
2022-06-25Add license (GNU GPLv3+)Teddy Wing
2022-06-25cws-status: Add script descriptionTeddy Wing
2022-06-25cws-status: Add sections to make the script easier to readTeddy Wing
Split up the different actions into logical sections.
2022-06-25cws-status: Add command line argument parsingTeddy Wing
Get the CWS dashboard URL and Chrome cookie path from command line arguments.
2022-06-25cws-status: Add error when not authenticatedTeddy Wing
2022-06-25cws-status: Take regex command line argument to filter extensionsTeddy Wing
The script now accepts a command line argument that filters the list of extension names and prints the matches as output.
2022-06-25requirements.txt: Add 'lxml' dependencyTeddy Wing
2022-06-25Extract extension names and publish statuses from the pageTeddy Wing
2022-06-25Experiments downloading the Chrome Web Store dashboard pageTeddy Wing
2022-06-18Describe ideaTeddy Wing