trifectatechfoundation / trifectatechfoundation/sudo-rs

CLI Overview

Open
#129 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-cli
Dominant language
Rust
Stars
4.5k
Forks
179
Avg merge
16h 45m
Merged PRs (30d)
4

Description

Since we decided we don't need to be a perfect, in-place replacement for sudo, we should consider removing some of the CLI options that we added. I'm opening this issue to keep track of this discussion.

Already implemented

  • --

  • -h, --help

  • -u user, --user=user

  • -g group, --group=group

  • -V, --version

  • -D directory, --chdir=directory

  • -i, --login (CC #225)

  • -s, --shell

  • -S, --stdin (PR #224 )

  • -n, --non-interactive

  • -k, --reset-timestamp

  • -K, --remove-timestamp

  • -v, --validate (always asking for password) (CC #395)

  • -p prompt, --prompt=prompt

  • -v, --validate (optionally asking for password) (CC #439)

  • -l, --list (CC #658)

  • -U user, --other-user=user (together with -l)

  • env variable declarations (CC #917, #932)

  • --preserve-env=list

  • -B, --bell (CC #1028)

  • -e, --edit (CC #762)

  • -b, --background (CC #1395)

Doubtful

  • -P, --preserve-groups
  • -C num, --close-from=num
  • -T timeout, --command-timeout=timeout
  • -H, --set-home

Highly doubtful

  • -E, --preserve-env
  • -h host, --host=host

Contributor guide

Open the contributing guide

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

Review the CLI option handling for the doubtful and highly doubtful options listed in the issue, beginning with --preserve-groups, --close-from, --command-timeout, --set-home, --preserve-env, and --host. The issue is currently a discussion tracker, so a maintainer decision is needed before a newcomer can identify the options to remove and the tests or behavior that define done.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.