-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change reference to Home / Away to colors, changed fonts, updated theme
- Loading branch information
Showing
20 changed files
with
2,005 additions
and
55 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
Binary file not shown.
Binary file not shown.
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,35 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/manifoldco/promptui" | ||
) | ||
|
||
func PromptIGLCustom() { | ||
// Each template displays the data received from the prompt with some formatting. | ||
templates := &promptui.PromptTemplates{ | ||
Prompt: "{{ . }} ", | ||
Valid: "{{ . | green }} ", | ||
Invalid: "{{ . | red }} ", | ||
Success: "{{ . | bold }} ", | ||
Confirm: "Is this an IGL Match or Custom Match?", | ||
} | ||
|
||
prompt := promptui.Prompt{ | ||
Label: "Select Match Type?", | ||
Templates: templates, | ||
IsConfirm: true, | ||
} | ||
|
||
result, err := prompt.Run() | ||
|
||
if err != nil { | ||
fmt.Printf("Prompt failed %v\n", err) | ||
return | ||
} | ||
|
||
// The result of the prompt, if valid, is displayed in a formatted message. | ||
fmt.Printf("You answered %s\n", result) | ||
return | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.