Fisrt functional version

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

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()