public static void Publish(
            string root,
            PublishOptions publishOptions,
            ProjectPackSubSystem.PackOptions packOptions)
        {
            string src = Path.Combine(root, "build", "module.json");

            ProjectPackSubSystem.Pack(root, packOptions);

            if (!File.Exists(src))
            {
                EventManager <ErrorEvent> .SendEvent(new FileNotFoundEvent( src, false ));

                return;
            }

            ProjectConfig t = ProjectConfig.Load(src);

            Logger.LogMessage(LoggerSystems.ModuleSystem, "Publishing '{0}'", src);

            ProjectResolver.GetManager(publishOptions.Repository).
            AddPackage(
                t,
                Path.Combine(root, "build", "module.zip")
                );
        }
        public override void Help()
        {
            ProjectPackSubSystem.WriteHelp();

            HelpSubSystem.WriteSubsystem(
                "vis project publish <repo> <projectDir>",
                new ProjectPackSubSystem.PackOptions(),
                new PublishOptions()
                );
        }