Ejemplo n.º 1
0
        protected override void Run()
        {
            var organizer = new SnippetOrganizer(Options, FileAssociations);
            var path      = organizer.CreateNewSnippet(Title, Description, Tags, Files);

            path.RunWithCode();

            var manifest = Manifest.Load(Options.WorkspacePath);

            organizer.UpdateAllWorkspaces(manifest.Definitions, manifest.OrderBy, manifest.SortDirection, resetSettings: false);

            if (Sync || Options.AutoSync)
            {
                CommitAndPush("Add new snippet");
            }
        }