hedgedoc / cli

A tiny CLI for HedgeDoc
GNU Affero General Public License v3.0
150 stars 37 forks source link

Support URL ending with / #30

Closed davidak closed 4 years ago

davidak commented 4 years ago
[davidak@X230:~/code/cli/bin]$ CODIMD_SERVER='https://pad.nixnet.services/' ./codimd login --email *****@*****.de **********
parse error: Invalid numeric literal at line 1, column 10
Failed to login at https://pad.nixnet.services/.

It works when i remove the / like in the example.

Example:
    $ env CODIMD_SERVER='https://codimd.example.com' codimd import /path/to/your/content.md

Please support such URLs for better UX.

pirate commented 4 years ago

Fixed https://github.com/codimd/cli/commit/faf4b6588329b218b5a7143f5e7d06e3a0cb3a9f