Fisrt functional version

This commit is contained in:
Eric Coissac committed 2024-11-14 19:10:23 +01:00
1 parent 9471fedfa1
commit 03f4e88a17
26 files changed
+908 -307

No files matched your search

+5 -5
View File
@@ -22,26 +22,26 @@ func main() {
}
switch {
case obifind.CLIRequestsPathForTaxid() >= 0:
case obifind.CLIRequestsPathForTaxid() != "NA":
taxonomy, err := obifind.CLILoadSelectedTaxonomy()
if err != nil {
fmt.Printf("%+v", err)
}
taxon, err := taxonomy.Taxon(obifind.CLIRequestsPathForTaxid())
taxon := taxonomy.Taxon(obifind.CLIRequestsPathForTaxid())
if err != nil {
if taxon == nil {
fmt.Printf("%+v", err)
}
s, err := taxon.Path()
s := taxon.Path()
if err != nil {
fmt.Printf("%+v", err)
}
obifind.TaxonWriter(s.Iterator(),
fmt.Sprintf("path:%d", taxon.Taxid()))
fmt.Sprintf("path:%s", taxon.String()))
case len(args) == 0:
taxonomy, err := obifind.CLILoadSelectedTaxonomy()