Spin stops any existing spinner and starts a new one with the given message.
(message string)
| 934 | |
| 935 | // Spin stops any existing spinner and starts a new one with the given message. |
| 936 | func (ec *ExecutionContext) Spin(message string) { |
| 937 | if ec.IsTerminal { |
| 938 | ec.Spinner.Stop() |
| 939 | ec.Spinner.Prefix = message |
| 940 | ec.Spinner.Start() |
| 941 | } else { |
| 942 | ec.Logger.Println(message) |
| 943 | } |
| 944 | } |
| 945 | |
| 946 | // loadEnvfile loads .env file |
| 947 | func (ec *ExecutionContext) loadEnvfile() error { |
no outgoing calls
no test coverage detected