using Quadarax.Foundation.Common.Console;
using Quadarax.Foundation.Common.Value;
using Quadarax.Foundation.QConsole.Attributes;
using Quadarax.Foundation.QConsole.Command.Base;

namespace Quadarax.Foundation.QConsole.Command.Defaults
{
    [CommandDefinition]
    public class CmdClear: AbstractCommand
    {
        #region *** Properties ***
        public override string Name => Constants.Commands.Clear.Name;
        public override string Description => Constants.Commands.Clear.Description;
        #endregion


        #region *** Constructor ***
        public CmdClear(Engine engine) : base(engine)
        {
        }
        #endregion

        #region *** Protected overrides ***
        protected override Result OnExecute()
        {
            ConsoleWriter.Clear();
            return new Result();
        }
        #endregion
    }    
}
