1 // 2 // Copyright (c) 2010-2018 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using AntShell.Commands; 9 using Antmicro.Renode.Core; 10 11 namespace Antmicro.Renode.UserInterface.Commands 12 { 13 public class VersionCommand : AutoLoadCommand 14 { 15 [Runnable] Run(ICommandInteraction writer)16 public void Run(ICommandInteraction writer) 17 { 18 writer.WriteLine(EmulationManager.Instance.VersionString); 19 } 20 VersionCommand(Monitor monitor)21 public VersionCommand(Monitor monitor) : base(monitor, "version", "shows version information.") 22 { 23 } 24 } 25 } 26 27