How to create sublime submenu dynamically
<p>I am writing a sublime plugin for my own use.</p>

<p>We have several projects, each command may apply to each project.</p>

<p>I can hardcode these submenus, but it's not so good.</p>

<p><a href="https://i.stack.imgur.com/0hluj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0hluj.png" alt="enter image description here"></a></p>

<p>Can I create these project sub menu dynamically? Many thanks.</p>