update to 1.10 & add doc for print, importing

This commit is contained in:
qwjyh 2024-01-02 08:33:46 +09:00
parent f03b5f25f3
commit ecd0d1c7b7
4 changed files with 13 additions and 3 deletions

View file

@ -14,7 +14,8 @@
** Inspecting with GUI
== TODO
- [ ] Printing
- [x] Printing
- [ ] visualize
- [ ] interactive edit
- [ ] doc

View file

@ -1,2 +1,3 @@
[deps]
CoordVisualize = "4c41ebcf-33aa-4478-9aac-83d12758d145"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

View file

@ -29,3 +29,5 @@ You can also edit existing notes with [`assign_note!`](@ref).
### Exporting
Use [`export_log`](@ref) to export log to `io` or `file`.
### Importing
Do `using Dates` first and just `include("filename")` and it will return `Vector{CoordLog}`.

View file

@ -18,11 +18,17 @@ function export_log(logs::Vector{CoordLog})
(s -> "[\n" * s * "\n]")
end
function export_log(io::IO, log::CoordLog)
"""
export_log(io::IO, log)
"""
function export_log(io::IO, log)
write(io, export_log(log))
end
function export_log(file::AbstractString, log::CoordLog)
"""
export_log(file::AbstractString, log)
"""
function export_log(file::AbstractString, log)
open(file, "w") do f
export_log(f, log)
end