Skip to content

CreateDirectoryCommand

Sub classes

Name Children Inherits
UnixCreateDirectoryCommand
anyenv.os_commands.create_directory
Unix/Linux create directory command implementation.
    MacOSCreateDirectoryCommand
    anyenv.os_commands.create_directory
    macOS create directory command implementation.
      WindowsCreateDirectoryCommand
      anyenv.os_commands.create_directory
      Windows create directory command implementation.

        Base classes

        Name Children Inherits
        ABC
        abc
        Helper class that provides a standard way to create an ABC using

        ⋔ Inheritance diagram

        graph TD
          2491271628["base.CreateDirectoryCommand"]
          925645236["abc.ABC"]
          2751680898["builtins.object"]
          925645236 --> 2491271628
          2751680898 --> 925645236

        🛈 DocStrings

        Bases: ABC

        Base class for create directory commands.

        Source code in src/anyenv/os_commands/base.py
        class CreateDirectoryCommand(ABC):
            """Base class for create directory commands."""
        
            @abstractmethod
            def create_command(self, path: str, parents: bool = True) -> str:
                """Generate directory creation command."""
        
            @abstractmethod
            def parse_command(self, output: str, exit_code: int = 0) -> bool:
                """Parse directory creation result."""
        

        create_command abstractmethod

        create_command(path: str, parents: bool = True) -> str
        

        Generate directory creation command.

        Source code in src/anyenv/os_commands/base.py
        @abstractmethod
        def create_command(self, path: str, parents: bool = True) -> str:
            """Generate directory creation command."""
        

        parse_command abstractmethod

        parse_command(output: str, exit_code: int = 0) -> bool
        

        Parse directory creation result.

        Source code in src/anyenv/os_commands/base.py
        @abstractmethod
        def parse_command(self, output: str, exit_code: int = 0) -> bool:
            """Parse directory creation result."""
        

        :fa-brands-github: Show source on GitHub