Skip to content

Commit

Permalink
adding a few more TODOs to create issues
Browse files Browse the repository at this point in the history
  • Loading branch information
elreydetoda committed May 27, 2019
1 parent 6d9eedb commit 5a53ccf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ append_str(){
export tmp_str

}

# TODO: finish parser
# body: write a parser to interpret where commands being and end. Here are a few things to consider.
# parse **Program Options** [here](https://github.com/elreydetoda/docker-bashfuscator/blob/master/bashfuscator_options.md) which are necessary to the function of the program.
# - these will tell you what you will be reading in from for the obfuscation
parse(){
# this function is to parse bashfuscation arguments, because docker
# doesn't allow quotes from being passed through unless it is env variables
Expand Down Expand Up @@ -71,6 +76,10 @@ main(){
*)
echo "${@}"
parse "${@}"

# TODO: output command to stdout
# body: always append `--output -` to the end of a command so it is outputted to stdout and the user can append `-- | clipcopy` or `xclip` or whatever their clipboard manager is (i.e. `clip.exe` for windows or `pbcopy` for osx) so it get's copied to their clipboard.
# - the `--` at the end of the command will allow docker to realize that there are no more args getting passed to it. (i.e. `docker container run --rm -it bashfuscator -- | less`
# "${bin_path}/bashfuscator" "$@"
;;
esac
Expand Down

0 comments on commit 5a53ccf

Please sign in to comment.