diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | cws-status | 13 |
2 files changed, 14 insertions, 3 deletions
@@ -15,8 +15,8 @@ authenticating with the cookies from the Google Chrome browser. --url 'https://chrome.google.com/webstore/devconsole/<UUID>' \ --cookie-path '~/Library/Application Support/Google/Chrome/Profile 1/Cookies' \ Example - Example extension BETA (Version 1.0) Published to testers - Example extension (Version 1.0) Published - public + Example extension BETA (Version 1.0) Published to testers + Example extension (Version 1.0) Published - public ## Install @@ -97,6 +97,17 @@ item_statuses = tree.xpath('//table[//th[text()="Item"]]/tbody/tr/td[7]/text()') # Print the publish status for the queried extensions. +matched_extensions = [] + for i, name in enumerate(item_names_versions): if re.search(regex, name): - print(f'{name}\t{item_statuses[i]}') + matched_extensions.append((name, item_statuses[i])) + +name_width = max([len(pair[0]) for pair in matched_extensions]) +column_padding = 7 + +for name, version in matched_extensions: + print( + name.ljust(name_width + column_padding), + version, + ) |
