Files
Jens AlmandGitHub ee0ea1930b 2515 Adding import and export (#2571)
* 2515 Added import and export

* 2515 fixed lint issues

* 2515 fixed earlier commit

* 2515 Fixed verbose flag. Added output when importing.

* 2515 Fixed lint issues.

* 2515 Fixed formatting

* 2515 Fixed input reference. Fixed error handling for missing identities.

* Refactor internal util usage and improve error handling.

* Removed cache in favor of maps

* Changed to using gabs to process json data

* Removed all plural entity names from command

* Renamed files/packages/classes to match command

* Refactored checks into functions and added tests.

* Fixed conflict in go.sum

* Fixed conflict in go.sum

* Fixed lint issue and general cleanup.

* Fixed test.
2025-01-09 09:02:07 -05:00

15 lines
439 B
Go

package internal
import "fmt"
import "io"
/*
Extends the standard FPrintF with overwriting the current line because it has the `\u001B[2K`
*/
func FPrintfReusingLine(writer io.Writer, format string, a ...any) (n int, err error) {
return fmt.Fprintf(writer, "\u001B[2K"+format+"\r", a...)
}
func FPrintflnReusingLine(writer io.Writer, format string, a ...any) (n int, err error) {
return FPrintfReusingLine(writer, format+"\n", a...)
}