-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for starting custom playgrounds and contributed challenges
- Loading branch information
Showing
12 changed files
with
224 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package safety | ||
|
||
import ( | ||
"github.com/iximiuz/labctl/internal/labcli" | ||
) | ||
|
||
func ShowSafetyDisclaimer(cli labcli.CLI) (bool, error) { | ||
cli.PrintAux("\n!!! THIRD-PARTY PLAYGROUND SAFETY WARNING !!!\n\n") | ||
cli.PrintAux("You are about to start a playground created by another user.\n") | ||
cli.PrintAux("Please follow these guidelines to ensure your security:\n\n") | ||
cli.PrintAux(" • Do not process or store any confidential or sensitive data\n") | ||
cli.PrintAux(" • Never enter passwords or API keys of sensitive accounts\n") | ||
cli.PrintAux("\n") | ||
cli.PrintAux("The platform is not responsible for any damage resulting from\n") | ||
cli.PrintAux("the use of third-party playgrounds.\n\n") | ||
|
||
if cli.Confirm( | ||
"Do you acknowledge the risks and agree to continue?", | ||
"Yes", "No", | ||
) { | ||
return true, nil | ||
} | ||
|
||
return false, labcli.NewStatusError(0, "See you later!") | ||
} |