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

namespace Quadarax.Foundation.Core.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
    }    
}
