infinitered / infinitered/solidarity

Easily add a new rules with snapshot

Open
#75 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
640
Forks
49
PR merge metrics
No merged PRs in 30d

Description

CLI with no version
```
$ solidarity snapshot cli detox
Would you like to add the binary `detox` to your Solidarity file? (Y/n) True
Update complete
```

CLI with a version
```shell
$ solidarity snapshot cli node
Would you like to add the binary `node` to your Solidarity file? (Y/n) True
Would you like to enforce a version requirement? (Y/n) True
Your system currently has version 8.6.0
Semver requirement for `node` binary : ^8.6.0
Update complete
```

ENV var
```
$ solidarity snapshot env PATH
Would you like to add the environment requirement `PATH` to you Solidarity file? (Y/n) True
Update complete
```

File/Dir also.
```
$ solidarity snapshot file ./nachos
Would you like to add the file requirement `./nachos` to you Solidarity file? (Y/n) True
Update complete
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the snapshot CLI command and trace how cli, env, file, and directory requirements are represented and written to the Solidarity file. Compare the command’s behavior with the examples; done means each type prompts appropriately, applies the optional version requirement for binaries, and reports Update complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.