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)
Tue, Dec 17, 11:54 PM
Unknown Object (File)
Sat, Dec 14, 9:23 PM
Unknown Object (File)
Sun, Dec 1, 8:30 PM
Unknown Object (File)
Mon, Nov 25, 3:59 AM
Unknown Object (File)
Nov 21 2024, 10:47 AM
Unknown Object (File)
Nov 16 2024, 8:18 PM
Unknown Object (File)
Oct 26 2024, 5:55 PM
Unknown Object (File)
Oct 24 2024, 6:14 AM
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
Branch
lipsum2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15790
Build 20878: Run Core Tests
Build 20877: arc lint + arc unit