ontodev / cogs

COGS Operates Google Sheets
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

cogs add: failure mode #95

Open matentzn opened 3 years ago

matentzn commented 3 years ago

Non urgent, but it would be good if cogs add would not fail hard if a fail has been added previously (or is unchanged).

Like git add.

Related to https://github.com/ontodev/cogs/issues/53

matentzn commented 3 years ago

Workaround in the meantime:

  1. check whether file is in .cogs directory
  2. check (grep) cogs ls
  3. Use pipeline ||
    cogs:
    $(foreach csv, $(ALL_AXIOM_ANALYSIS_TABLES), cogs add $(csv) || echo "Already added!";)
    cogs push