-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e29c74
commit 3d78f09
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.IO; | ||
using System.Collections; | ||
using ILeoConsole; | ||
using ILeoConsole.Plugin; | ||
using ILeoConsole.Core; | ||
|
||
namespace LeoConsole_ExamplePlugin { | ||
public class Printenv : ICommand { | ||
public string Name { get { return "printenv"; } } | ||
public string Description { get { return "print the environment"; } } | ||
public Action CommandFunktion { get { return () => Command(); } } | ||
private string[] _InputProperties; | ||
public string[] InputProperties { get { return _InputProperties; } set { _InputProperties = value; } } | ||
public void Command() { | ||
foreach (DictionaryEntry de in Environment.GetEnvironmentVariables()) { | ||
Console.WriteLine("{0}={1}", de.Key, de.Value); | ||
} | ||
} | ||
} | ||
} | ||
|
||
// vim: tabstop=2 softtabstop=2 shiftwidth=2 expandtab |