Opened 5 months ago

Last modified 7 weeks ago

#27362 new defect

(sub-)packages outside of core (cli) should not need to know about confs and args

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: unspecified
Component: Core Tor/sbws Version:
Severity: Normal Keywords:
Cc: juga, teor Actual Points:
Parent ID: #28684 Points:
Reviewer: Sponsor:


That would help to have a more modular design and use other (sub)packages and (sub)modules without the need of creating ConfigParser and ArgumentParser objects.
It also would help to simplify tests configurations.

Additionally, a program should take into account in this order:

  • cli arguments
  • environment variables
  • user configuration files
  • system configuration files
  • program defaults

That is currently almost match. but it would be better if they all can be took into account in a simpler way.

This is not for MVP, but creating the ticket cause i'm creating new code taking this into account, and would be nice to change at some point.

Some tickets, as #27358, happen because of this.

Child Tickets

Change History (6)

comment:1 Changed 2 months ago by teor

Milestone: sbws 1.1

These changes can probably wait until sbws 1.1

comment:2 Changed 8 weeks ago by teor

Milestone: sbws 1.1sbws 1.2

Milestone renamed

comment:3 Changed 8 weeks ago by teor

Milestone: sbws 1.2sbws: 1.2.x

Milestone renamed

comment:4 Changed 8 weeks ago by teor

Milestone: sbws: 1.2.xsbws: 1.2.x-final

Milestone renamed

comment:5 Changed 7 weeks ago by teor

Milestone: sbws: 1.2.x-finalsbws: unspecified

Milestone renamed

comment:6 Changed 7 weeks ago by juga

Cc: pastly removed
Parent ID: #28684

This is also part of #28684.

Note: See TracTickets for help on using tickets.