Monarchz3ro / Silver

A unix inspired terminal mockup that is definitely not an emulator.
GNU General Public License v3.0
2 stars 2 forks source link

regarding possible implementation of grep + a few more things #26

Open Monarchz3ro opened 3 months ago

Monarchz3ro commented 3 months ago

Now that I've made significant strides on the story and 'engine implementation' part of the game, it's time to discuss commands that will take a LOT of our time implementing.

The first one we'll want to go with is grep.

  1. Which parameters do we want to be able to pass into grep?
  2. Do we want to implement an emulation for awk and sed too? Maybe sed, but awk is probably a bit too huge for what we have in mind, right?

And lastly, a huge question I have been considering. Should we refactor our code so that it uses argparse? Should we refactor our ENTIRE codebase so that it no longer relies on os, but uses dictionaries to store the filestructures?

Yajus114 commented 3 months ago

If there's significant benefit of using dictionaries over OS, then yes. Stop thinking get coding. If no, let things be.

Monarchz3ro commented 3 months ago

there is a huge benefit - the game suddenly becomes more portable over different OSes and doesn't need to consider things crashing because of permissions

Yajus114 commented 3 months ago

Then let's

OcelotWalrus commented 3 months ago

I think too that using dictionaries as a filestructure would be way better. I also think that every json files should be changed into yaml files. It'd be way better for us to modify the files.

I have a suggestion: maybe these yaml files could also by encrypted (in a simple way). I just think it could be cool. Like that, the player can't simply open these files and modify them. He'll need to go through the kernel code and find the encryption key.

Monarchz3ro commented 3 months ago

Alright, I'll make a separate branch for a restructuring using dictionaries. Unfortunately I'm not amazing enough to think of a way to implement this right about immediately, but I'm going to try regardless.

OcelotWalrus commented 3 months ago

I have some ideas on how I'd do it, if you ever need any help, just ask!

Monarchz3ro commented 3 months ago

Sure! I'll try to spin up something myself then ask if I need help.

OcelotWalrus commented 3 months ago

Good luck and have fun coding!