Convert /toggle to command framework