Use eshell-defgroup rather than defgroup. Autoload the custom group. Set generated-autoload-file.
Attach a file by drag & drop or click to upload