Skip to content

Conversation

@suryateja1698
Copy link

Steps to run

make run
  1. Add distributor - ./distrib add distributor1
  2. To add permissions for a distributor - ./distrib include distributor1 INDIA
  3. To check if distributor has permission - ./distrib check distributor1 ONGOLE-ANDHRAPRADESH-INDIA
  4. To list all distributors - ./distrib list
  5. To exclude a city for a distributor - ./distrib exclude distributor1 TAMILNADU-INDIA
  6. To show distributor information - ./distrib show distributor1
  7. To copy permissions from a distributor - ./distrib add distributor2 --parent distributor1

We store the current state(distributor permissions) in current_state.json. If we want to reset all permissions, just remove or delete the json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant