cogs icon indicating copy to clipboard operation
cogs copied to clipboard

cogs add: failure mode

Open matentzn opened this issue 5 years ago • 1 comments

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 avatar Jan 14 '21 15:01 matentzn

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

matentzn avatar Jan 14 '21 15:01 matentzn