mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
chore: README update demo and Error Fix (#126)
* docs: Update README with demo gif * fix: Proxy remove dependency on interaction * fix: Update demo gif width * Update docs/demo/pmg-intro.tape Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com> * fix: PMG demo --------- Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+12
-1
@@ -54,6 +54,14 @@ func ClearStatus() {
|
||||
}
|
||||
|
||||
func Block(config *BlockConfig) error {
|
||||
return blockWithExit(config, true)
|
||||
}
|
||||
|
||||
func BlockNoExit(config *BlockConfig) error {
|
||||
return blockWithExit(config, false)
|
||||
}
|
||||
|
||||
func blockWithExit(config *BlockConfig, exit bool) error {
|
||||
StopSpinner()
|
||||
|
||||
fmt.Println()
|
||||
@@ -64,7 +72,10 @@ func Block(config *BlockConfig) error {
|
||||
}
|
||||
|
||||
fmt.Println()
|
||||
os.Exit(1)
|
||||
|
||||
if exit {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user