A simple utility to manage Nginx configurations.

Rename --available to --disabled to be more clear

+3 -3
+1 -1
README.md
··· 102 102 nx <command> [arguments] 103 103 104 104 COMMANDS: 105 - list, l List all sites. Supports --enabled or --available filters. 105 + list, l List all sites. Supports --enabled or --disabled filters. 106 106 enable <site> Enable a site by creating a symlink. 107 107 disable <site> Disable a site by removing the symlink. 108 108 edit, e <site> Open site config in $EDITOR.
+2 -2
nx.sh
··· 54 54 55 55 # Filtering logic 56 56 if [[ "$SITE" == "--enabled" && "$status" == "Disabled" ]]; then continue; fi 57 - if [[ "$SITE" == "--available" && "$status" == "${GREEN}Enabled${NC}" ]]; then continue; fi 57 + if [[ "$SITE" == "--disabled" && "$status" == "${GREEN}Enabled${NC}" ]]; then continue; fi 58 58 59 59 table_output+="${display_name};${status}\n" 60 60 done ··· 132 132 nx <command> [arguments] 133 133 134 134 ${BOLD}COMMANDS:${NC} 135 - ${GREEN}list, l${NC} List all sites. Supports ${GREEN}--enabled${NC} or ${GREEN}--available${NC} filters. 135 + ${GREEN}list, l${NC} List all sites. Supports ${GREEN}--enabled${NC} or ${GREEN}--disabled${NC} filters. 136 136 ${GREEN}enable${NC} <site> Enable a site by creating a symlink. 137 137 ${GREEN}disable${NC} <site> Disable a site by removing the symlink. 138 138 ${GREEN}edit, e${NC} <site> Open site config in ${BOLD}\$EDITOR${NC}.