pcdshub / pcdshub/shared-dotfiles

Add which_happi or similar

Open
#32 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3
Forks
15
Avg merge
7d 10h
Merged PRs (30d)
1

Description

(Thought up by @tangkong)

For a table:
cat /cds/group/pcds/pyps/apps/hutch-python/device_config/db.json | jq '[ to_entries[] | .value ]' | json-to-table - --columns name beamline --sort-key name

JSON information could be readily retrieved with just jq from the database

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown jq and json-to-table command against /cds/group/pcds/pyps/apps/hutch-python/device_config/db.json, then inspect the shared shell configuration for the appropriate entry point. Determine whether which_happi or a similar command belongs in this repository and define completion as a usable way to retrieve and tabulate the database's JSON information.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, shell
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.