FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Linux.Services.Shell.IShellCommandHandler Interface Reference

Extends ILocalShellHandler with support for shell commands. More...

Inheritance diagram for FileSurfer.Linux.Services.Shell.IShellCommandHandler:
Collaboration diagram for FileSurfer.Linux.Services.Shell.IShellCommandHandler:

Public Member Functions

ValueResult< string > ExecuteShellCommand (string shellCommand, params string[] args)
 Executes a shell command in the command prompt.
Public Member Functions inherited from FileSurfer.Core.Services.Shell.ILocalShellHandler
IResult OpenTerminalAt (string dirPath)
 Opens a terminal window rooted at the specified directory path.
IResult OpenFile (string filePath)
 Opens the specified file using the operating system's default associated application.
IResult OpenInNotepad (string filePath)
 Opens the specified file in the configured text editor (referred to as Notepad in settings).
Public Member Functions inherited from FileSurfer.Core.Services.Shell.IShellHandler
IResult CreateFileLink (string filePath)
 Creates a symbolic link for the specified file path.
IResult CreateDirectoryLink (string dirPath)
 Creates a symbolic link for the specified directory path.
ValueResult< string > ExecuteCommand (string programName, params string[] args)
 Executes a command and returns stdout.
Task< ValueResult< string > > ExecuteCommandAsync (string programName, params string[] args)
 Asynchronously executes a command and returns stdout.

Detailed Description

Extends ILocalShellHandler with support for shell commands.

Member Function Documentation

◆ ExecuteShellCommand()

ValueResult< string > FileSurfer.Linux.Services.Shell.IShellCommandHandler.ExecuteShellCommand ( string shellCommand,
params string[] args )

Executes a shell command in the command prompt.

Parameters
shellCommandShell command to execute
argsArguments for the shell command's $variables
Returns
A ValueResult<string> representing the result stdout of the operation and potential errors.

Implemented in FileSurfer.Linux.Services.Shell.LinuxShellHandler.


The documentation for this interface was generated from the following file:
  • /home/janecea/Documents/CODE/PROJECTS/FileSurfer/src/FileSurfer.Linux/Services/Shell/LinuxShellHandler.cs