foambubble / foam-cli

CLI interface for https://github.com/foambubble/foam
https://foambubble.github.io/
MIT License
10 stars 2 forks source link

How to setting ignoreGlobs in foam janitor command #4

Open t2hv33 opened 2 years ago

t2hv33 commented 2 years ago

But when I run foam-cli: foam janitor '~/Documents/foam-hub'

 Reading Files[info] Workspace folders:  [ '/Users/name/Documents/foam-hub' ]
[info] Glob patterns {
  includeGlobs: [ '/Users/name/Documents/foam-hub/**/*' ],
  ignoreGlobs: [] //it can't read the ignoreGlobs config

How to config ignoreGlobs for foam cli with the global config?

riccardoferretti commented 2 years ago

foam-cli is no longer maintained/supported but kept open in case people want to propose their own fixes to possible issues they might come across.

In this case, looking at the code: https://github.com/foambubble/foam-cli/blob/main/src/commands/janitor.ts it can be see that foam-cli doesn't read any configuration file when bootstrapping, but simply use standard parameters.