ayapingping-sh is the main shell script (/bin/sh
) for ayapingping's generator, which follows POSIX standards to ensure
it can run effectively on any platform, operating system, or programming language shell session. This script is currently
used by every ayapingping variant and will be used in the next variant. Because the main generator is written in shell
script, adapting the next ayapingping variant to a new or different programming language should be straightforward.
Currently, ayapingping has the following variants:
- Golang: ayapingping-go
- Python: ayapingping-py
- TypeScript: ayapingping-ts
- Operating systems supporting
/bin/sh
with POSIX standards. Linux and macOS should have no issues here as they support it by default. For Windows users, consider using WSL instead
There's no need to get started here. To see how the generator works, see the description below, or just take a look at the main_*.sh
file.
How does it work?
Let's assume you have installed one of the ayapingping variants, for example: ayapingping-go. When you call any ayapingping-go command: ayapingping-go
, ayapingping-go version
, ayapingping-go importFeature bla bla bla
, and so on... It will:
- Check if you can get the latest
main_*.sh
version from this repo - If you can't (either you're offline or something else), ayapingping-go will use the current
main.sh
file from its installation directory - If you can, ayapingping-go will update the current
main.sh
file in its installation directory with the latest one and will use it for the next process - So, this will make sure that ayapingping-go always uses the latest version of the generator without breaking or changing anything
- The same behavior applies to the other variants too
- This means any fixes, changes, or adjustments made to the generator will also automatically be applied to all the ayapingping variants
To check the version of the generator, just use the version
command:
ayapingping-go version
# Output: AyaPingPing (Golang) v4.4.0 sh4.0.0
The sh4.0.0
is the generator version.
Read it at CHANGELOG.md.
Copyright © 2024 Dali Kewara