class EnvironmentCommand(BaseHuggingfaceCLICommand):
    def __init__(self, args):
        self.args = args

    @staticmethod
    def register_subcommand(parser: _SubParsersAction):
        env_parser = parser.add_parser("env", help="Print information about the environment.")
        env_parser.set_defaults(func=EnvironmentCommand)

    def run(self) -> None:
        dump_environment_info()
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/src/huggingface_hub/commands/env.py