-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor in advance of adding `add()`` A lot of the logic of `update` is needed by `add`: * codelist file parsing (indirectly) * file downloading * manifest handling This commit pulls out those needed parts into their own functions, and pulls out parse_codelist_file's line-parsing logic into its own function. This allows us to check the line we're about to add to the codelists file is valid before doing so, check that once we add the line to the codelists file that it is valid, leave pre-existing codelists and their corresponding manifest file entries intact. * `codelists add` command Allow users to add OpenCodelists codelists to the codelists.txt file by URL, allowing for common variations from the "base" URL
- Loading branch information
1 parent
c62aef9
commit c52e797
Showing
2 changed files
with
245 additions
and
70 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