fork/gdu
git clone https://git.julia.blue/fork/gdu
9ca5c60
master
1package tui 2 3// DeleteAction selects how an item is removed from the directory tree. 4type DeleteAction uint8 5 6const ( 7ActionDelete DeleteAction = iota 8ActionEmpty 9ActionMoveToTrash 10) 11 12func (a DeleteAction )Verb ()string { 13switch a { 14case ActionEmpty : 15return "empty" 16case ActionMoveToTrash : 17return "move to trash" 18case ActionDelete : 19return "delete" 20 } 21return "delete" 22} 23 24func (a DeleteAction )Acting ()string { 25switch a { 26case ActionEmpty : 27return "emptying" 28case ActionMoveToTrash : 29return "moving to trash" 30case ActionDelete : 31return "deleting" 32 } 33return "deleting" 34}