Commit Graph

153 Commits

Author SHA1 Message Date
Mark Harrah c368a34d36 clean up scope delegation implementation 2011-04-12 20:58:59 -04:00
Mark Harrah 944bd82306 work on tests 2011-04-08 19:17:58 -04:00
Mark Harrah 5409dd91d8 reorganize main 2011-04-08 19:15:13 -04:00
Mark Harrah 33206fc537 move toSeq up from IMap to PMap 2011-04-07 22:50:26 -04:00
Mark Harrah 1ddf5c8c31 'inspect actual <key>' for actual dependencies, 'inspect <key>' for declared 2011-03-29 20:53:21 -04:00
Mark Harrah e016e644ae newline before JLine's above threshold prompt 2011-03-25 18:22:30 -04:00
Mark Harrah c803a4a16d tab completion fixes and cleanup 2011-03-24 21:28:02 -04:00
Mark Harrah 339c59bad4 tab completion: print message when input is invalid 2011-03-24 21:28:02 -04:00
Mark Harrah 7feebe2f85 tab completion: example-checking off by default, 'matches' convenience method 2011-03-24 21:28:02 -04:00
Mark Harrah c9f8d70ee5 command logging through Streams, 'last' without a key to redisplay it 2011-03-21 20:26:04 -04:00
Mark Harrah 95e5206c3f work on displaying task errors 2011-03-20 22:54:01 -04:00
Mark Harrah cacd1a5be8 'update' caching now takes into account whether jars still exist 2011-03-17 21:29:35 -04:00
Mark Harrah 309bc5caeb reintegrate history commands, add proper parsing for recursive commands 2011-03-11 16:52:44 -05:00
Mark Harrah 1f2c066639 Merge branch '0.9' of github.com:harrah/xsbt into 0.9 2011-03-08 17:53:43 -05:00
Mark Harrah 93b13e80b7 success indication and timestamps for actions 2011-03-06 21:57:31 -05:00
Mark Harrah f9e8534a89 join for tasks and settings 2011-03-01 08:48:14 -05:00
Mark Harrah a9ee49ee1e starting to convert integration tests 2011-02-22 22:36:48 -05:00
Mark Harrah 9e080d7418 configurable shell prompt
for example:
 Command.ShellPrompt := {
   s => Project.extract(s).cid + "> "
 }
2011-02-21 19:35:05 -05:00
Mark Harrah d264ab0ad2 add 'seq' combinator that applies one or more parsers, collecting all valid results 2011-02-21 10:00:40 -05:00
Mark Harrah fb29d8e11e tweak URI character class for improved completion 2011-02-19 15:29:51 -05:00
Mark Harrah 333b2833fe make completion cross product lazier 2011-02-18 20:58:13 -05:00
Mark Harrah 5d74d2d985 return position at which parsing fails 2011-02-18 20:57:39 -05:00
Mark Harrah a6df926d41 fix issue with updating a non-definitive setting 2011-02-15 18:43:44 -05:00
Mark Harrah e6dcca1b42 handle constant types 2011-02-14 18:59:54 -05:00
Mark Harrah 86d82141a3 cleanup/rework related to Settings/InputParser
- drop fillThis: handle in injectStreams instead
- simplify InputParser construction (at the expense of implementation simplicity)
- split out ScopeKey/initialization parts of Setting with separate Initialize trait
  + makes Apply obsolete
  + makes the Initialize trait properly composable
  + this allowed splitting the InputParser definition into
    an Initialize for parsing and one for the action
- implement test-only
- inject resolved scope
2011-02-11 20:22:17 -05:00
Mark Harrah c54d412e66 some more example tab completion combinators 2011-02-08 20:33:34 -05:00
Mark Harrah b503716e38 'get' now shows defining scope, related definitions, dependencies 2011-02-06 11:33:56 -05:00
Mark Harrah 80ae202965 overhaul Streams injection 2011-02-05 21:39:34 -05:00
Mark Harrah 6688c4fdf1 improve Setting construction
- make all constructing methods end in = for lowest precedence
- rename Scope constructing method 'apply' to 'in' to allow 'apply' to
    be used on single settings as well as tuples and 'in' reads better
2011-02-04 22:02:39 -05:00
Mark Harrah 8183b717dd session manipulation commands
save, clear, list, and remove session settings
2011-02-02 22:56:11 -05:00
Mark Harrah 536e95cca5 translate Uninitialized message to use 'display' 2011-01-31 18:16:25 -05:00
Mark Harrah 2f41690269 KList updates
- exchange variance annotations on KList for a bounded existential
   in KList.toList
 - add foldr (reason for dropping variance annotations)
 - add functions stating equivalence between
   + KList[M,H :+: T] and KCons[H,T,M]
   + KList[M,HNil] and KNil
2011-01-28 21:07:29 -05:00
Mark Harrah e41d4cc8c8 convenience method on Settings to get all (Scope, AttributeKey[_]) pairs 2011-01-25 22:19:03 -05:00
Mark Harrah 1be53be310 make Uri parser fail (instead of error) on malformed inputs 2011-01-25 22:18:18 -05:00
Mark Harrah d906455aed split load-time project structure scope resolution into two phases
first phase resolves referenced build URIs as each build is loaded
second phase resolves references without an explicit project ID
  (this requires the whole structure to be known and this isn't available during the first phase)
setting resolution is unchanged (done after both phases)
2011-01-25 22:14:02 -05:00
Mark Harrah ba9c2c0e14 cleanup and fixes 2011-01-24 18:08:43 -05:00
Mark Harrah 5f9c6f7f26 improve commands, proper build/project base resolution
finish alias support
better project printing in 'projects'
completion support for 'help'
resolve URIs in ProjectRef against base URI of defining build in keys and project relations
resolve base directories and record build URI in BuildUnit
preserve relative paths in File to URI conversion for later resolution
2011-01-23 22:34:17 -05:00
Mark Harrah 092c012b0b make explicit the separation between parsing and execution
Parser[() => State] instead of Parser[State]
2011-01-22 15:01:10 -05:00
Mark Harrah d49706b297 redo Command to use Parser
nested commands still need work
2011-01-22 14:01:59 -05:00
Mark Harrah bcc8c37f4d multi-project model based on Settings and ProjectRef 2011-01-18 18:48:32 -05:00
Mark Harrah c24c0b7a23 fully-scoped Settings 2011-01-18 18:48:32 -05:00
Mark Harrah 625ddd703c part I of revised approach to commands/projects
no privileged project member of State
no separation of Command and Apply, so no pre-filtering on State
use entries in State attributes map instead of mixing in traits to project object:
  HistoryPath, Logger, Analysis, Navigate, Watch, TaskedKey
rework Navigation to be standalone instead of mixin
2011-01-18 18:48:32 -05:00
Mark Harrah 783d732868 Remove obsolete comments 2011-01-18 18:43:58 -05:00
Mark Harrah f0ef14289d update completion example with newer combinators 2011-01-18 18:43:17 -05:00
Mark Harrah 5cb2ba2a7d JLine integration for tab completion combinators 2011-01-18 18:07:48 -05:00
Mark Harrah 62958e2f19 fix flatMap in completion 2010-12-14 06:08:20 -05:00
Mark Harrah ddb4381454 fixes and improvements to tab completions combinators 2010-12-13 22:44:25 -05:00
Mark Harrah c436a1d3eb Settings 2010-12-12 21:33:32 -05:00
Mark Harrah 99230f02a2 fixes and additions to completion combinators
filter,map,flatMap
remove incorrect reductions
2010-12-08 22:16:12 -05:00
Mark Harrah 29efa529cd parser combinators with builtin tab completion support
lacks memoization
lacks error messages for normal parsing
2010-12-06 19:48:49 -05:00