-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add automated CLI demonstrations #262
Changes from 1 commit
8c79508
aa75d88
42286da
f7430a4
f6c666e
f537119
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Common config for demo scripts | ||
configure() { | ||
DELAY=0.12 | ||
DELAY_SEP=0.3 | ||
DELAY_PROMPT=0.6 | ||
# No messages/warnings in the current versions of the scripts | ||
# COLOR_WARNING='1;91' | ||
# COLOR_MESSAGE='1;32' | ||
# If you want to use the colorful prompt | ||
TUTERM_NAME='PyFunceble-demo' | ||
} | ||
|
||
prompt() { | ||
# A more colorful prompt | ||
# echo -ne "\033[1;94m$TUTERM_NAME \033[1;35m$(pwd | sed "s:$HOME:~:")\033[0;33m $\033[0m " | ||
echo -n '[funilrys@funilrys PyFunceble]$ ' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env tuterm | ||
|
||
source config.sh.in | ||
|
||
run() { | ||
echo | ||
c PyFunceble -a -d github.com | ||
c PyFunceble -a -d github.com --no-whois # TODO doesn't work | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @spirillen @funilrys I did see the comment. I was just a bit confused that the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @veracioux, it's because So if the |
||
c PyFunceble -a -d githuuub.com | ||
c PyFunceble -a -d microsoft_google.com | ||
c exit | ||
} | ||
|
||
# vim: filetype=sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env tuterm | ||
|
||
source config.sh.in | ||
|
||
run() { | ||
echo | ||
c PyFunceble -d 192.168.178.60 # TODO doesn't print the status | ||
c PyFunceble -d 192.168.178.250 # TODO doesn't print the status | ||
c PyFunceble -d 192.168.178.259 | ||
c exit | ||
} | ||
|
||
# vim: filetype=sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env tuterm | ||
|
||
source config.sh.in | ||
|
||
run() { | ||
echo | ||
c PyFunceble -u https://github.com/funilrys | ||
c PyFunceble -u https://github.com/microsoft_google | ||
c PyFunceble -u https://microsoft_google.com | ||
c PyFunceble -u https://microsoft_google.com --local | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, use the example.(com|net|org) #L8-L10 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, this is okay. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #262 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this demo specifically, I don't know how to use example.org and achieve the same effect as the existing demo does. I don't know how example.net handles URL paths. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You will get a 404 so my first though is to append the example. to the number of lines. See also #262 (comment) for answer |
||
c exit | ||
} | ||
|
||
# vim: filetype=sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest using
example.org
(for good domains),example.com
(for bad domains andexample.org
(for neutral domains) this would follow the practice in the docs. (https://github.com/funilrys/PyFunceble/blame/dev/docs/usage/terminal.rst#L9-L10)In one of these examples I will suggest adding two domains.
Example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think microsoft_google.com is better as a "bad" domain because it's more intuitive. No one expects microsoft and google to share a domain. But
example.com
wouldn't strike anyone as a bad domain until they actually check it. I do agree thatexample.org
a suitable "good" domain.This is just my opinion, and I will implement it the way you and the other maintainers want it of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You nailed it @veracioux! That's actually why I choose
microsoft_google.com
haha.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't say I in anyway disagree with any of you. It was just for the sake of the continually flow.
It also could be a help to new users, if naming is related to the docs, so people better can compare the readden word with the video.