Skip to content

Global dependencies passed to commands  #61

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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