using System.Collections.Generic;
using OpenCAD2D;
using OpenCAD2D.Plugins;
namespace HelloWorld
{
///
/// The smallest plugin that does anything: HELLOWORLD writes Hello, World! on the command line, asks nothing
/// and changes nothing.
///
public sealed class HelloWorldCommands
{
/// Writes Hello, World!; the command takes no prompt.
/// The command's context.
/// No prompts: the command asks nothing.
[CadCommand("HELLOWORLD", Description = "Write Hello, World! on the command line")]
public IEnumerable Hello(CadCommandContext c)
{
c.Write("Hello, World!");
yield break;
}
}
}