*! v0.1.0 2018-08-03 Scott Long

//  adoit.ado: list ado-files in working directory; click to do
//  jslong@iu.edu - Scott Long

capture program drop adoit
program define adoit
    version 13.0
    syntax [ anything]

    local filespec : subinstr local anything ".ado" "", all
    if "`filespec'"=="" local filespec "*"
    local filelist : dir "`c(pwd)'" files "`filespec'.ado"

    program drop _all
    foreach file in `filelist' {
        display `"{stata do `file':`file'}"'
    }

end
exit