Exemple #1
0
            public void Invoke(string data)
            {
                var args = DeveloperConsole.SplitArgs(data);

                if (args.Length == 0)
                {
                    DeveloperConsole.ChangeDirectory(DeveloperConsole.HomeDirectory);
                }
                else if (args.Length == 1)
                {
                    if (TryNavigateDirectory(args[0], out var newDir))
                    {
                        DeveloperConsole.ChangeDirectory(newDir);
                    }
                    else
                    {
                        LogWarning("not a directory");
                    }
                }
                else
                {
                    LogWarning(kUsage);
                }
            }