Ferreteria/v0.6/clade/IO/Aspect/Connx/Plug/Shell/Local

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | clade‎ | IO‎ | Aspect‎ | Connx‎ | Plug‎ | Shell
Jump to navigation Jump to search
clade: IO\Aspect\Connx\Plug\Shell\Local
Clade Family
Shell Local (none)
Clade Aliases
Alias Clade
Action* [c,i] CommOp
Shell* [ca,i] Shell
Subpages

About

  • Purpose: a shell connection to the local machine

Thinking

  • 2024-11-19 For local connections, we mostly don't need to do anything as far as opening and shutting stuff. I suppose we could have this non-functionality implemented in the base class, and override the nothings with somethings for other connection types, but that doesn't seem like good separation of functionality.

History

  • 2024-11-02 started
  • 2024-11-19 moved from [WF]Config\Def\Connex\Shell ⇒ [WF]IO\Connex\Shell

Code

as of 2025-12-10:

interface iLocal extends BaseIface {}
class cLocal extends BaseClass implements iLocal {

    // ++ CONFIG ++ //

    public function SType()             : string { return 'local plug'; }

    // -- CONFIG -- //
    // ++ ACTION ++ //

    public function ActualOpen() : ActionIface { return ActionClass::AsNoOp(); }
    public function ActualShut() : ActionIface { return ActionClass::AsNoOp(); }

    // -- ACTION -- //
    // ++ UI ++ //

    public function DescribeInline() : string { return '(local)'; }

    // -- UI -- //
}