Commands
atools version
- Print the current version of atools.atools completion
- Generate the autocompletion script for the specified shell.atools linecounter
- Count the number of lines in files with a specific extension.atools portcheck
- Checks if a port is occupied or free on the local machine.atools ipinfo
- Display the IP info of the current machine.atools jsonfmt
- Pretty print JSON.atools construct
- Construct your atools blueprints.
Version
Prints the current installed version of atools.
Usage:
Example Output:
Completion
Generate the autocompletion script for the specified shell.
Usage:
Supported Shells:bash
zsh
fish
powershell
Linecounter
Count the number of lines in files with a specific extension.
Usage:
The extension is required and can be provided without the dot (e.g.,
txt
for.txt
files).
Flags:
-h
,--help
Help for linecounter.-d
,--directory
string The directory to scan. Default is the current directory.-r
,--recursive
Enable recursive search in subdirectories.-l
,--list
List all scanned files with their line count (high to low).-s
,--spread
Show the amount of files scanned.
Portcheck
Check if a port is occupied or free on the local machine.
Usage:
Ipinfo
Display the IP info of the current machine.
Usage:
Example Output:
Jsonfmt
Pretty print JSON.
Usage:
Or use it in a pipe:Flags:
-h
,--help
Help for jsonfmt.-c
,--compact
Compact JSON output.
Construct
Construct your atools blueprints.
Usage:
See how to create a blueprint here.
To call your blueprints, you can also use the name of the file without the extension (e.g.,
my-blueprint
formy-blueprint.yaml
).
Flags:
-h
,--help
Help for construct.-s
,--silent
Silent mode (no output).