fractal-analytics-platform / fractal-client

Command-line client for Fractal
https://fractal-analytics-platform.github.io/fractal-client
BSD 3-Clause "New" or "Revised" License
45 stars 1 forks source link

Include more user-settings attributes in `fractal user {register,edit}` commands - TBD #706

Closed tcompa closed 1 week ago

tcompa commented 1 month ago

There are quite a few user-settings attributes, starting from fractal-server 2.6.0.

We should opt for e.g. one of these options:

  1. We expose all of them as CLI arguments
  2. We only expose a subset of them as CLI arguments
  3. We expose a single CLI argument pointing to a JSON file, where all attributes may be present
tcompa commented 1 week ago

Relevant fields:


class UserSettingsUpdate(BaseModel, extra=Extra.forbid):
    ssh_host: Optional[str] = None
    ssh_username: Optional[str] = None
    ssh_private_key_path: Optional[str] = None
    ssh_tasks_dir: Optional[str] = None
    ssh_jobs_dir: Optional[str] = None
    slurm_user: Optional[str] = None
    slurm_accounts: Optional[list[StrictStr]] = None
    cache_dir: Optional[str] = None

We should include all ssh-related ones