Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨New option -d or --debug to enable debug mode for the command #7

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

carloscasalar
Copy link
Owner

@carloscasalar carloscasalar commented Nov 9, 2024

Summary

Adds a new option for the CLI: -d or --debug that enables the debug mode. When debug mode is neabled, the command will print the input read and the raw generated data.

Related issue

Related #6

Output example

❯ make run -- -r pilot -d         
mkdir -p out
./out/generate-npc -r pilot -d
 Inputs--------------
 CitizenCategory:  1
 Experience:  3
 CrewRole:  pilot
 Generated ----------
 Name:  Sparrow Patel
 Role:  pilot
 Experience:  regular
 Skills:  [Pilot (Spacecraft)-2 Astrogation-2 Electronic (Sensors)-1 Gunnery-1 Mechanic-0 Leadership-0 Vacc Suit-0 Electronics-0 Drive-0]
 Characteristics:  map[STR:7 DEX:9 END:5 INT:8 EDU:7 SOC:6]
 --------------------
╭──────────────────────────────────┬───────────────────────────────────────────╮
│ Name                             │ Role                                      │
├──────────────────────────────────┼───────────────────────────────────────────┤
│ Sparrow Patel                    │ Pilot (Average Regular)                   │
╰──────────────────────────────────┴───────────────────────────────────────────╯
╭─────────────┬────────────┬────────────┬────────────┬────────────┬────────────╮
│     STR     │    DEX     │    END     │    INT     │    EDU     │    SOC     │
├─────────────┼────────────┼────────────┼────────────┼────────────┼────────────┤
│      7      │     9      │     5      │     8      │     7      │     6      │
╰─────────────┴────────────┴────────────┴────────────┴────────────┴────────────╯
╭──────────────────────────────────────────────────────────────────────────────╮
│ Skills                                                                       │
├──────────────────────────────────────────────────────────────────────────────┤
│ Pilot (Spacecraft)-2, Astrogation-2, Electronic (Sensors)-1, Gunnery-1,      │
│ Mechanic-0, Leadership-0, Vacc Suit-0, Electronics-0, Drive-0                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

@carloscasalar carloscasalar added the enhancement New feature or request label Nov 9, 2024
@carloscasalar carloscasalar self-assigned this Nov 9, 2024
@carloscasalar carloscasalar linked an issue Nov 9, 2024 that may be closed by this pull request
@carloscasalar
Copy link
Owner Author

/closes #7

@carloscasalar carloscasalar merged commit e158da0 into main Nov 9, 2024
2 checks passed
@carloscasalar carloscasalar deleted the 6-add-debug-mode-to-the-generate-npc-command branch November 9, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add debug mode to the generate-npc command
1 participant