{"size": 764, "ext": "scrbl", "max_stars_repo_path": "invoke-doc.scrbl", "max_stars_repo_name": "Bogdanp/raco-invoke", "max_stars_repo_stars_event_min_datetime": "2022-01-12T12:13:40.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-12T15:06:31.000Z", "max_issues_repo_path": "invoke-doc.scrbl", "max_issues_repo_name": "Bogdanp/raco-invoke", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "invoke-doc.scrbl", "max_forks_repo_name": "Bogdanp/raco-invoke", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.3846153846, "max_line_length": 70, "alphanum_fraction": 0.6767015707}
#lang scribble/manual

@(require (for-label racket/base
                     raco/invoke))

@title{@tt{raco-invoke}: invoke @exec{raco} commands}
@author[@author+email["bogdan@defn.io"]{Bogdan Popa}]
@defmodule[raco/invoke]

This module provides a function for invoking @exec{raco} commands in a
way that cooperates with @tt{raco-cross}.

@defproc[(raco [command-name string?]
               [arg string?] ...) byte?]{

  Invokes the command named @racket[command-name] with the given set
  of @racket[arg]s.  If the command doesn't exist, an error is raised.
  It invokes the command inside the current process via
  @racket[dynamic-require], so it doesn't create a subprocess.

  @racketblock[
  (raco "exe" "--help")
  (raco "exe" "-o" "test" "test.rkt")
  ]
}
