bnvk / Conjuror

An experiment in the CSV format, open data, magic, and wizardly things!
Other
10 stars 2 forks source link

Add support for "projects" to Users config file #40

Open simonv3 opened 8 years ago

simonv3 commented 8 years ago

To achieve this goal:

bnvk commented 8 years ago

Heya! This is definitely something I've thought about a bit and encountered myself. What I'm thinking is the best course of action is storing key/value items in an array in the config file that keep track of "projects" on a users system- so something like

"projects": [{
  "Client Work": "/home/user/TimeTracking/datapackage.json",
  "Expenses": "/home/user/Receipts/datapackage.json"
}]

The think here is that then from the CLI a user could call conjuror projects and get a list of the items to open or run reports on, or conversely conjuror track which then the first step is picking from the "projects" the type of data one is tracking...

simonv3 commented 8 years ago

yeah that makes a lot of sense. I think that's been missing. Then the json is a recipe indicator that could get pretty flexible as well - even to indicate the kind of questions in track?

bnvk commented 8 years ago

Then the json is a recipe indicator

That is precisely how I've always envisioned it and what attracted me to DataPackages- using that JSON schema to help a user pick recipes- automagically saying "this data looks like it belongs on a map, bar chart, invoice, etc..."

bnvk commented 8 years ago

I've renamed this issue and am making to-do's of the aspects of the app in which this impacts that need to accounted for when implementing:

todo list moved to original comment

@simonv3 just tagging you here so you see this, as I think this is relevant to recipes :wink:

simonv3 commented 8 years ago

So, something that's been bothering me and I'll tackle once I have some time: I want to be able to properly add a project to my config file, and I can't look at what I've already logged today (because I've been manually creating projects without creating a corresponding .json file). Noting that here because it's the most relevant place.