summaryrefslogtreecommitdiffstats
path: root/CHANGES
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-04-11 17:20:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-04-11 17:20:40 +0000
commit2022cfe07e331dc4b69829ca4dd45c295190d471 (patch)
tree502b38f6f67849331f027bd1a98ebb412b857eec /CHANGES
parent47b71e6ee9c421162b1cf610bd1ca22843691764 (diff)
New -mac and -macopt options to dgst utility. Reimplement -hmac option in
terms of new API.
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES3
1 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 060fcd822b..70561f7d05 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,7 +7,8 @@
*) Experimental support for use of HMAC via EVP_PKEY interface. This
allows HMAC to be handled via the EVP_DigestSign*() interface. The
EVP_PKEY "key" in this case is the HMAC key, potentially allowing
- ENGINE support for HMAC keys which are unextractable.
+ ENGINE support for HMAC keys which are unextractable. New -mac and
+ -macopt options to dgst utility.
[Steve Henson]
*) New option -sigopt to dgst utility. Update dgst to use
25' href='#n25'>25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
package gui

import "github.com/jesseduffield/lazygit/pkg/utils"

type appStatus struct {
	name       string
	statusType string
	duration   int
}

type statusManager struct {
	statuses []appStatus
}

func (m *statusManager) removeStatus(name string) {
	newStatuses := []appStatus{}
	for _, status := range m.statuses {
		if status.name != name {
			newStatuses = append(newStatuses, status)
		}
	}
	m.statuses = newStatuses
}

func (m *statusManager) addWaitingStatus(name string) {
	m.removeStatus(name)
	newStatus := appStatus{
		name:       name,
		statusType: "waiting",
		duration:   0,
	}
	m.statuses = append([]appStatus{newStatus}, m.statuses...)
}

func (m *statusManager) getStatusString() string {
	if len(m.statuses) == 0 {
		return ""
	}
	topStatus := m.statuses[0]
	if topStatus.statusType == "waiting" {
		return topStatus.name + " " + utils.Loader()
	}
	return topStatus.name
}