CLI Backend resolver and nemar backend command

Open
#2,739 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start by locating the CLI's per-account apiUrl, build-time data-host list, and --host handling, then read the backend contract v1 issue this depends on. Trace how dataset IDs are routed and how backend credentials are stored. Done means one Backend resolver supports descriptor pattern matching and 404 fallback, with nemar backend list and --backend behavior as specified.

Written by the indexing model from the issue text.

Description

cli feature

Goal

One place in the CLI decides where a request goes.

Scope

  • Replace the per-account apiUrl and the build-time data-host list with one Backend object (origin, descriptor, credential path) and a resolver.
  • Route a dataset id by the descriptors' id patterns first, then by asking each backend (a backend answers 404 for both "not here" and "not yours").
  • nemar backend list (known backends, capabilities, signed in or not) and --backend <name>.
  • --host is replaced by --backend; no compatibility layer is kept.
  • Descriptors are cached per process only.

Depends on

The backend contract v1 issue.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
4h 48m
Merged PRs (30d)
468

Getting set up

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.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.