Skip to content

Make xp web [name] load the class xp.[name].Web#104

Merged
thekid merged 4 commits into
masterfrom
feature/xp-shorthand
Nov 20, 2023
Merged

Make xp web [name] load the class xp.[name].Web#104
thekid merged 4 commits into
masterfrom
feature/xp-shorthand

Conversation

@thekid
Copy link
Copy Markdown
Member

@thekid thekid commented Nov 20, 2023

This PR makes it shorter to load specialized web applications by being able to refer to them with a lowercased version, e.g. xp web lambda Greet instead of xp web xp.lambda.Ws Greet. It saves only a couple of keystrikes but falls in line with 7f3f773, which aliased the command line option -m dev to -m develop.

Example

$ xp web lambda Greet
@xp.web.srv.Standalone(HTTP @ peer.ServerSocket(Resource id #124 -> tcp://127.0.0.1:8080))
Serving prod:xp.lambda.Web<Greet>[] > web.logging.ToConsole
════════════════════════════════════════════════════════════════════════
> Server started: http://localhost:8080 in 0.057 seconds
  Sat, 18 Nov 2023 12:19:32 +0100 - PID 18668; press Ctrl+C to exit

# ...

See xp-forge/lambda-ws#11 (comment)

@thekid thekid merged commit c0718ea into master Nov 20, 2023
@thekid thekid deleted the feature/xp-shorthand branch November 20, 2023 18:52
thekid added a commit to xp-forge/lambda-ws that referenced this pull request Nov 20, 2023
@thekid
Copy link
Copy Markdown
Member Author

thekid commented Nov 20, 2023

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant