Powershell GUI fronted (WPF) to run categorized console scripts

āŒˆāŒ‹ āŽ‡ branch:  ClickyColoury


Check-in [1470549b26]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add online repo shortcut, disable config option (not going to use plugin scan or add direct download).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1470549b2602aeab803d10a95305b7fd1969427c
User & Date: mario 2018-05-18 17:54:36
Context
2018-05-18
17:57
Simpler Start-Process doesn't work. PS does not escape double quotes in -ArgumentList properly, nor allows escaping with standard CMD ^ caret etc. check-in: 8e78d588f1 user: mario tags: trunk
17:54
Add online repo shortcut, disable config option (not going to use plugin scan or add direct download). check-in: 1470549b26 user: mario tags: trunk
2018-05-16
18:16
REGEDIT starter which key-macro loads remote machine right away. check-in: b70b97c785 user: mario tags: trunk
Changes

Changes to tools/plugins/plugin_manager.ps1.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
...
111
112
113
114
115
116
117
118


119
120
121
122
123
124
125
126
127
128
129
130
131
# api: multitool
# version: 0.2
# title: Plugin Manager
# description: Install/delete user plugins in %APPDATA%
# type: inline
# depends: menu
# category: config
# hidden: 1
# key: plugins?
# config:
#    { name: plugin_online_repo, type: str, value: "http://fossil.include-once.org/repo.json/clickycoloury/contrib/*.ps1", description: online repository of additional plugins }
# img: tools
#
#
# Scan contrib/*.ps1 and allow copying files to %APPDATA%/multitool
# Not overly pretty. Just lists some file details with [Install] or [Delete] button.
#

................................................................................
              Add=@(
                 @(W Label @{Content="āœŽ Tooltips contain additional script/plugin details.`r`nā˜› Close window when done."}) +
                 @(W Label @{Content="Install new plugins/tools"; FontSize=20}) +
                 $installable +
                 @(W Label @{Content="Remove from %APPDATA% dir"; FontSize=20}) +
                 $removable
                 @(W Label @{Content="Manually manage"; FontSize=20}) +
                 @(W Button @{Content="open %APPDATA%\multitool config dir"; Add_Click={II $userdir}; Width=250; HorizontalAlignment="Left"})


              )
            }
          )
        }
      )
    })#=window
    [void]$w.ShowDialog()
}

Write-Host "ā Show plugin manager.."
Run-PluginManager $p_avail $p_users

Write-Host "ā˜› Restart for changes to take effect."

|








|







 







|
>
>













1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
...
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# api: multitool
# version: 0.3
# title: Plugin Manager
# description: Install/delete user plugins in %APPDATA%
# type: inline
# depends: menu
# category: config
# hidden: 1
# key: plugins?
# config:
#    {"disabled- name: plugin_online_repo, type: str, value: "http://fossil.include-once.org/repo.json/clickycoloury/contrib/*.ps1", description: online repository of additional plugins }
# img: tools
#
#
# Scan contrib/*.ps1 and allow copying files to %APPDATA%/multitool
# Not overly pretty. Just lists some file details with [Install] or [Delete] button.
#

................................................................................
              Add=@(
                 @(W Label @{Content="āœŽ Tooltips contain additional script/plugin details.`r`nā˜› Close window when done."}) +
                 @(W Label @{Content="Install new plugins/tools"; FontSize=20}) +
                 $installable +
                 @(W Label @{Content="Remove from %APPDATA% dir"; FontSize=20}) +
                 $removable
                 @(W Label @{Content="Manually manage"; FontSize=20}) +
                 @(W Button @{Content="open %APPDATA%\multitool config dir"; Add_Click={II $userdir}; Width=250; HorizontalAlignment="Left"; Margin=5}),
                 @(W Button @{Content="browse contrib/ plugin dir"; Add_Click={II $repodir}; Width=250; HorizontalAlignment="Left"; Margin=5}),
                 @(W Button @{Content="show ClickyColoury online repo"; Add_Click={Start "http://fossil.include-once.org/clickycoloury/wiki/contrib"}; Width=250; HorizontalAlignment="Left"; Margin=5})
              )
            }
          )
        }
      )
    })#=window
    [void]$w.ShowDialog()
}

Write-Host "ā Show plugin manager.."
Run-PluginManager $p_avail $p_users

Write-Host "ā˜› Restart for changes to take effect."