FarNet.Stateless 0.0.3

Prefix Reserved
There is a newer version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FarNet.Stateless" Version="0.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FarNet.Stateless --version 0.0.3                
#r "nuget: FarNet.Stateless, 0.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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:

Examples

See FarNet.Stateless/examples

Phone.stateless.ps1 example with interactive loop in PowerShell:
(OnHookOffHookDial (+ prompt for number) → RingingConnected → ...)

image

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

There are no supported framework assets in this package.

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.

Version Downloads Last updated
0.1.1 135 8/4/2024
0.1.0 96 7/15/2024
0.0.3 98 7/13/2024
0.0.2 89 7/12/2024
0.0.1 92 7/10/2024