{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/792","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/792/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/792/events","html_url":"https://github.com/dart-lang/pub/issues/792","id":85644750,"number":792,"title":"Unclear if pub build can build any directory or just the one I'm in","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Pub-Build","name":"Pub-Build","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-05T22:14:53Z","updated_at":"2015-06-05T22:14:54Z","closed_at":"2015-06-05T22:14:54Z","body":"<a href=\"https://github.com/sethladd\"><img src=\"https://avatars.githubusercontent.com/u/5479?v=3\" align=\"left\" width=\"96\" height=\"96\"hspace=\"10\"></img></a> **Issue by [sethladd](https://github.com/sethladd)**\n_Originally opened as dart-lang/sdk#15732_\n\n----\n\nRunning `pub build --help` prints this:\n\nsethladd:~/Code/dartlang.org (update-flightschool)$ pub build --help\nCopy and compile all Dart entrypoints in the 'web' directory.\n\nUsage: pub build [options]\n...\n\nI think this means pub build must be run from the package directory? Can we make that more explicit?\n\nUse case: I have another script that needs to compile a dart app. Ideally, there's be a Pub API to do it. However, I can shell out and run `pub build`. Ideally, I could say `pub build dir/to/package`.\n\nWorkaround: change the working directory of the script and then run `pub build`. But maybe we can pass in the directory to build."}}