biocommons / seqrepo-rest-service

OpenAPI-based REST interface to biological sequences and sequence metadata
Apache License 2.0
4 stars 5 forks source link

Add optional argv to main so it can be overridden programmatically #11

Open theferrit32 opened 1 year ago

theferrit32 commented 1 year ago

Add an argv parameter to cli.main, cli._parse_opts. Currently uses ArgumentParser.parse_args() with no args, so it only looks at sys.argv.

Parameterizing those would make it easier to run the service programmatically from another application.

https://github.com/biocommons/seqrepo-rest-service/blob/a6386e0ab82e276f83b8e6498297f0de4815e34a/src/seqrepo_rest_service/cli.py#L44-L50

https://github.com/biocommons/seqrepo-rest-service/blob/a6386e0ab82e276f83b8e6498297f0de4815e34a/src/seqrepo_rest_service/cli.py#L40

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 11 months ago

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.