Page MenuHomePhabricator

Make `bin/lipsum generate` hanldle generator keys and arguments more clearly
ClosedPublic

Authored by epriestley on Feb 27 2017, 12:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 22, 11:13 AM
Unknown Object (File)
Tue, Jan 21, 9:21 AM
Unknown Object (File)
Fri, Jan 17, 8:44 AM
Unknown Object (File)
Fri, Jan 3, 1:42 AM
Unknown Object (File)
Wed, Jan 1, 2:58 PM
Unknown Object (File)
Wed, Dec 25, 2:27 AM
Unknown Object (File)
Wed, Dec 25, 1:55 AM
Unknown Object (File)
Dec 24 2024, 1:10 PM
Subscribers
None

Details

Summary

Ref T12319. Currently, bin/lipsum uses substring matches against human-readable text to chose which objects to generate.

Instead:

  • Use separate selector keys which are guaranteed to be unique.
  • When a match is exact, select only that generator.
  • When a match is ambiguous, fail and warn the user.
Test Plan

Generated several types of objects, tried to generate ambiguous objects like "e".

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable