Skip to content

Commit

Permalink
Merge branch 'main' of github.com:marcuwynu23/Auto
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuwynu23 committed Jul 16, 2022
2 parents afe608b + e394e47 commit c3bb850
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Auto - Window commandline Automation tool

Tool use to automate executable running in cmd
Tool use to automate commandline execution in window terminal

How to use:
Create a file .autofile then add the commands in the .autofile
Create a file .autofile then add this commands in the .autofile:
```
# this is a comment
echo hello world!
echo hi friend
```

then run in cmd:
then run in terminal:
```
auto
```
Expand Down
2 changes: 1 addition & 1 deletion bin/.autofile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#name
aaa
echo Hi
#aad
echo Hello world!
Binary file modified bin/auto.exe
Binary file not shown.
5 changes: 1 addition & 4 deletions src/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ void __readStringLine(std::string fileName){
if (newfile.is_open()){
string tp;
while(getline(newfile, tp)){
if(tp[0] == '#'){
continue;
}
else{
if(tp[0] != '#'){
__termExecute("echo "+tp+"&& start cmd /K "+tp);
}
}
Expand Down

0 comments on commit c3bb850

Please sign in to comment.