···102102 nx <command> [arguments]
103103104104COMMANDS:
105105- list, l List all sites. Supports --enabled or --available filters.
105105+ list, l List all sites. Supports --enabled or --disabled filters.
106106 enable <site> Enable a site by creating a symlink.
107107 disable <site> Disable a site by removing the symlink.
108108 edit, e <site> Open site config in $EDITOR.
+2-2
nx.sh
···54545555 # Filtering logic
5656 if [[ "$SITE" == "--enabled" && "$status" == "Disabled" ]]; then continue; fi
5757- if [[ "$SITE" == "--available" && "$status" == "${GREEN}Enabled${NC}" ]]; then continue; fi
5757+ if [[ "$SITE" == "--disabled" && "$status" == "${GREEN}Enabled${NC}" ]]; then continue; fi
58585959 table_output+="${display_name};${status}\n"
6060 done
···132132 nx <command> [arguments]
133133134134${BOLD}COMMANDS:${NC}
135135- ${GREEN}list, l${NC} List all sites. Supports ${GREEN}--enabled${NC} or ${GREEN}--available${NC} filters.
135135+ ${GREEN}list, l${NC} List all sites. Supports ${GREEN}--enabled${NC} or ${GREEN}--disabled${NC} filters.
136136 ${GREEN}enable${NC} <site> Enable a site by creating a symlink.
137137 ${GREEN}disable${NC} <site> Disable a site by removing the symlink.
138138 ${GREEN}edit, e${NC} <site> Open site config in ${BOLD}\$EDITOR${NC}.