started implementing an API
This commit is contained in:
@ -7,7 +7,7 @@ class_name CMD
|
||||
## unsurround the string
|
||||
## This function does no evaluation and does not attempt to guess the type of
|
||||
## arguments. You will receive either bools, or strings.
|
||||
var command_line_arguments: Dictionary = (func get_command_line_arguments() -> Dictionary:
|
||||
var command_line_arguments: Dictionary = (func () -> Dictionary:
|
||||
var unsurround := func unsurround(value: String, quotes := PackedStringArray(['"', "'"])) -> String:
|
||||
for quote_str in quotes:
|
||||
if value.begins_with(quote_str) \
|
||||
|
@ -75,3 +75,5 @@ func from_csv_line(line: PackedStringArray) -> TimeEntry:
|
||||
end_time.from_current_time()
|
||||
return self
|
||||
|
||||
func _to_string() -> String:
|
||||
return "%s\t%s\t%s"%[name, Consts.ONGOING if closed == false else "", start_time]
|
Reference in New Issue
Block a user