mirror of
https://github.com/IllusionMan1212/ffui.git
synced 2026-10-24 02:12:35 +00:00
chore: format app.go
This commit is contained in:
@@ -121,9 +121,18 @@ func (m model) View() string {
|
|||||||
progress := ""
|
progress := ""
|
||||||
|
|
||||||
if m.IsDirectory {
|
if m.IsDirectory {
|
||||||
progress = fmt.Sprintf("%s %d/%d files encoded\nFile Progress: %s\n\nTotal Progress: %s", m.Spinner.View(), m.FileCount-len(m.Files), m.FileCount, m.SingleFileProgressBar.View(), m.TotalProgressBar.View())
|
progress = fmt.Sprintf("%s %d/%d files encoded\nFile Progress: %s\n\nTotal Progress: %s",
|
||||||
|
m.Spinner.View(),
|
||||||
|
m.FileCount-len(m.Files),
|
||||||
|
m.FileCount,
|
||||||
|
m.SingleFileProgressBar.View(),
|
||||||
|
m.TotalProgressBar.View())
|
||||||
} else {
|
} else {
|
||||||
progress = fmt.Sprintf("%s %d/%d files encoded\n%s", m.Spinner.View(), m.FileCount-len(m.Files), m.FileCount, m.SingleFileProgressBar.View())
|
progress = fmt.Sprintf("%s %d/%d files encoded\n%s",
|
||||||
|
m.Spinner.View(),
|
||||||
|
m.FileCount-len(m.Files),
|
||||||
|
m.FileCount,
|
||||||
|
m.SingleFileProgressBar.View())
|
||||||
}
|
}
|
||||||
|
|
||||||
view := fmt.Sprintf("\nEncoding \"%s\"...\n%s", m.CurrentFileName, progress)
|
view := fmt.Sprintf("\nEncoding \"%s\"...\n%s", m.CurrentFileName, progress)
|
||||||
|
|||||||
Reference in New Issue
Block a user