FarNet.Stateless
0.0.3
Prefix Reserved
See the version list below for details.
dotnet add package FarNet.Stateless --version 0.0.3
NuGet\Install-Package FarNet.Stateless -Version 0.0.3
<PackageReference Include="FarNet.Stateless" Version="0.0.3" />
paket add FarNet.Stateless --version 0.0.3
#r "nuget: FarNet.Stateless, 0.0.3"
// Install FarNet.Stateless as a Cake Addin #addin nuget:?package=FarNet.Stateless&version=0.0.3 // Install FarNet.Stateless as a Cake Tool #tool nuget:?package=FarNet.Stateless&version=0.0.3
FarNet.Stateless
Interactive workflows using dotnet-state-machine/stateless, PowerShell module and FarNet library.
The package provides interactive helpers for Stateless state machines.
Machines may be created in PowerShell scripts or in imported assemblies.
Packages:
- PowerShell 5.1+ module, PSGallery FarNet.Stateless
- FarNet library, NuGet FarNet.Stateless
Examples
Phone.stateless.ps1 example with interactive loop in PowerShell:
(OnHook
→ OffHook
→ Dial
(+ prompt for number) → Ringing
→ Connected
→ ...)
PowerShell module
You may install the PowerShell module by this command:
Install-Module -Name FarNet.Stateless
Explore, see also about_FarNet.Stateless.help.txt:
# import and get module commands
Import-Module -Name FarNet.Stateless
Get-Command -Module FarNet.Stateless
# get module and commands help
help about_FarNet.Stateless
help Invoke-Stateless
help Invoke-StateMachine
help Show-StateMachine
FarNet library
To install as the FarNet library FarNet.Stateless
, follow these steps.
The NuGet package is installed to %FARHOME%\FarNet\Lib\FarNet.Stateless
.
The PowerShell module may be imported as:
Import-Module $env:FARHOME\FarNet\Lib\FarNet.Stateless
Expose the module as a symbolic link or junction
Consider exposing this module, so that you can:
Import-Module FarNet.Stateless
(1) Choose one of the module directories, see $env:PSModulePath
.
(2) Change to the selected directory and create the symbolic link
New-Item FarNet.Stateless -ItemType SymbolicLink -Value $env:FARHOME\FarNet\Lib\FarNet.Stateless
(3) Alternatively, you may create the similar folder junction point in Far
Manager using AltF6
.
Then you may update the FarNet package with new versions. The symbolic link or junction do not have to be updated, they point to the same location.
See also
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.