Skip to content

Global dependencies passed to commands  #61

@guergabo

Description

@guergabo

Problem

Part of being able to add more unit tests for issue #58 and run them concurrently involves removing/reducing the number of shared global dependencies.

Solution

We could do this by avoiding a command's logic from calling global variables directly and instead pass them a copy to a command's constructor in the cli.Main.

Here is an example for the switch command: #60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions