update to 1.10 & add doc for print, importing
This commit is contained in:
parent
f03b5f25f3
commit
ecd0d1c7b7
4 changed files with 13 additions and 3 deletions
|
@ -14,7 +14,8 @@
|
||||||
** Inspecting with GUI
|
** Inspecting with GUI
|
||||||
|
|
||||||
== TODO
|
== TODO
|
||||||
- [ ] Printing
|
- [x] Printing
|
||||||
- [ ] visualize
|
- [ ] visualize
|
||||||
|
- [ ] interactive edit
|
||||||
- [ ] doc
|
- [ ] doc
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
[deps]
|
[deps]
|
||||||
|
CoordVisualize = "4c41ebcf-33aa-4478-9aac-83d12758d145"
|
||||||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
|
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
|
||||||
|
|
|
@ -29,3 +29,5 @@ You can also edit existing notes with [`assign_note!`](@ref).
|
||||||
### Exporting
|
### Exporting
|
||||||
Use [`export_log`](@ref) to export log to `io` or `file`.
|
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}`.
|
||||||
|
|
10
src/print.jl
10
src/print.jl
|
@ -18,11 +18,17 @@ function export_log(logs::Vector{CoordLog})
|
||||||
(s -> "[\n" * s * "\n]")
|
(s -> "[\n" * s * "\n]")
|
||||||
end
|
end
|
||||||
|
|
||||||
function export_log(io::IO, log::CoordLog)
|
"""
|
||||||
|
export_log(io::IO, log)
|
||||||
|
"""
|
||||||
|
function export_log(io::IO, log)
|
||||||
write(io, export_log(log))
|
write(io, export_log(log))
|
||||||
end
|
end
|
||||||
|
|
||||||
function export_log(file::AbstractString, log::CoordLog)
|
"""
|
||||||
|
export_log(file::AbstractString, log)
|
||||||
|
"""
|
||||||
|
function export_log(file::AbstractString, log)
|
||||||
open(file, "w") do f
|
open(file, "w") do f
|
||||||
export_log(f, log)
|
export_log(f, log)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue