separated script for FEATURES.md generation
This commit is contained in:
parent
0157e24398
commit
f826f8c22d
3 changed files with 17 additions and 25 deletions
18
FEATURES.md
18
FEATURES.md
|
@ -20,10 +20,8 @@ Features list for option: --feature (dev only)
|
||||||
* get_all_vars
|
* get_all_vars
|
||||||
* get_basic_passwords
|
* get_basic_passwords
|
||||||
* get_file_contents
|
* get_file_contents
|
||||||
* get_fs_info
|
|
||||||
* get_gcache_memory
|
* get_gcache_memory
|
||||||
* get_http_cli
|
* get_http_cli
|
||||||
* get_kernel_info
|
|
||||||
* get_log_file_real_path
|
* get_log_file_real_path
|
||||||
* get_opened_ports
|
* get_opened_ports
|
||||||
* get_os_release
|
* get_os_release
|
||||||
|
@ -31,29 +29,13 @@ Features list for option: --feature (dev only)
|
||||||
* get_pf_memory
|
* get_pf_memory
|
||||||
* get_process_memory
|
* get_process_memory
|
||||||
* get_replication_status
|
* get_replication_status
|
||||||
* get_system_info
|
|
||||||
* get_tuning_info
|
|
||||||
* get_wsrep_option
|
* get_wsrep_option
|
||||||
* get_wsrep_options
|
* get_wsrep_options
|
||||||
* goodprint
|
* goodprint
|
||||||
* greenwrap
|
* greenwrap
|
||||||
* grep_file_contents
|
* grep_file_contents
|
||||||
* headerprint
|
* headerprint
|
||||||
* hr_bytes
|
|
||||||
* hr_bytes_rnd
|
|
||||||
* hr_num
|
|
||||||
* hr_raw
|
|
||||||
* human_size
|
* human_size
|
||||||
* infocmd
|
|
||||||
* infocmd_one
|
|
||||||
* infocmd_tab
|
|
||||||
* infoprint
|
|
||||||
* infoprintcmd
|
|
||||||
* infoprinthcmd
|
|
||||||
* infoprintml
|
|
||||||
* is_open_port
|
|
||||||
* is_remote()
|
|
||||||
* is_virtual_machine
|
|
||||||
* log_file_recommendations
|
* log_file_recommendations
|
||||||
* make_recommendations
|
* make_recommendations
|
||||||
* mariadb_aria
|
* mariadb_aria
|
||||||
|
|
12
build/genFeatures.sh
Normal file
12
build/genFeatures.sh
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Update Feature list
|
||||||
|
(
|
||||||
|
echo -e "Features list for option: --feature (dev only)\n---\n\n"
|
||||||
|
grep -E '^sub ' ../mysqltuner.pl | \
|
||||||
|
perl -pe 's/sub //;s/\s*\{//g'| \
|
||||||
|
sort -n | \
|
||||||
|
perl -pe 's/^/* /g' | \
|
||||||
|
grep -vE '(is_|hr_|info)'
|
||||||
|
) > ../FEATURES.md
|
||||||
|
|
|
@ -11,12 +11,10 @@ perl updateCVElist.pl
|
||||||
dos2unix ../mysqltuner.pl
|
dos2unix ../mysqltuner.pl
|
||||||
|
|
||||||
# Update Feature list
|
# Update Feature list
|
||||||
(
|
bash ./genFeatures.sh
|
||||||
echo -e "Features list for option: --feature (dev only)\n---\n\n"
|
|
||||||
grep -E '^sub ' ../mysqltuner.pl | perl -pe 's/sub //;s/\s*\{//g'| sort -n | perl -pe 's/^/* /g'
|
|
||||||
) > ../FEATURES.md
|
|
||||||
|
|
||||||
git add ../vulnerabilities.csv ../mysqltuner.pl ../USAGE.md ../FEATURES.md
|
git add ../vulnerabilities.csv ../mysqltuner.pl ../USAGE.md ../FEATURES.md
|
||||||
#git commit -m 'Update Vulnerabilities list
|
git commit -m 'Update Vulnerabilities list
|
||||||
#Indenting mysqltuner
|
Indenting mysqltuner
|
||||||
#Update Usage information'
|
Update Usage information
|
||||||
|
Regenerate fetures list'
|
||||||
|
|
Loading…
Reference in a new issue