refactor main functions

Bug #1707321 reported by Nish Aravamudan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
Fix Released
Undecided
Nish Aravamudan

Bug Description

Across all the source, we should refactor the subcommand::main functions, so they the subcommands can be called for testing (and re-use) rather than only via __main__. This will involve:

1) create internal functions that take the expected arguments as keywords, with relevant defaults?

2) main() simply takes the args, grabs the ones to pass to the function created in 1) and calls it.

Related branches

Nish Aravamudan (nacc)
Changed in usd-importer:
status: New → Confirmed
milestone: none → 1.0
Robie Basak (racb)
Changed in usd-importer:
status: Confirmed → Triaged
Nish Aravamudan (nacc)
Changed in usd-importer:
status: Triaged → In Progress
assignee: nobody → Nish Aravamudan (nacc)
status: In Progress → Triaged
Nish Aravamudan (nacc)
Changed in usd-importer:
status: Triaged → In Progress
Nish Aravamudan (nacc)
Changed in usd-importer:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.