Skip to content

RemovePathCommand

Sub classes

Name Children Inherits
UnixRemovePathCommand
anyenv.os_commands.remove_path
Unix/Linux remove path command implementation.
    MacOSRemovePathCommand
    anyenv.os_commands.remove_path
    macOS remove path command implementation.
      WindowsRemovePathCommand
      anyenv.os_commands.remove_path
      Windows remove path 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
          691014020["base.RemovePathCommand"]
          925645236["abc.ABC"]
          2751680898["builtins.object"]
          925645236 --> 691014020
          2751680898 --> 925645236

        🛈 DocStrings

        Bases: ABC

        Base class for remove path commands.

        Source code in src/anyenv/os_commands/base.py
        class RemovePathCommand(ABC):
            """Base class for remove path commands."""
        
            @abstractmethod
            def create_command(self, path: str, recursive: bool = False) -> str:
                """Generate removal command."""
        
            @abstractmethod
            def parse_command(self, output: str, exit_code: int = 0) -> bool:
                """Parse removal result."""
        

        create_command abstractmethod

        create_command(path: str, recursive: bool = False) -> str
        

        Generate removal command.

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

        parse_command abstractmethod

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

        Parse removal result.

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

        :fa-brands-github: Show source on GitHub