Exemplo n.º 1
0
        public virtual void HasAutoComplete(string text, string[] args, List <string> output, List <string> outputConcat)
        {
            var first = string.Empty;

            if (args.Length > 0)
            {
                first = args[0];
            }

            output.AddRange(ConsoleManager.GetHelp(this, first, distinct: false));
            outputConcat.AddRange(ConsoleManager.GetHelp(this, first, distinct: true, commandsOnly: true));
        }
Exemplo n.º 2
0
        public virtual void GetParamAutoComplete(string text, string[] args, int paramIndex, out List <string> output, out List <string> outputConcat)
        {
            output       = new List <string>();
            outputConcat = new List <string>();

            var first = string.Empty;

            if (args.Length > 0)
            {
                first = args[0];
            }

            output.AddRange(ConsoleManager.GetHelp(this, first, distinct: false));
            outputConcat.AddRange(ConsoleManager.GetHelp(this, first, distinct: true, commandsOnly: true));
        }