sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

sasjs compile for a single file #469

Closed allanbowe closed 3 years ago

allanbowe commented 3 years ago

For a large project it can be time consuming to compile and deploy every service. In addition, for our upcoming VSCode plugin, we need a way to compile and run a single Job or Service.

Proposal - we add two new actions to the sasjs compile command, eg:

sasjs compile job -s myjob.sas -t mytarget -o /some/folder

and

sasjs compile service -s myservice.sas -t mytarget

So will then have three 'compile' commands:

Arguments:

--source (alias -s) - the path/name.ext of the individual source file to compile (as job or service). MANDATORY --target (alias -t) - The target to use for obtaining the source folders of programs and macros. If it is not specified, the first target is used by default. The target can exist either in the local project configuration or in the global .sasjsrc file. OPTIONAL --output (alias -o) - path where output of the compiled job or service will be saved. OPTIONAL. If not provided, the output will go to the root of the sasjsbuild folder if in a project (sasjsbuild would be emptied first), else in the current working directory.

The created job or service will have the same name as the source file.

saadjutt01 commented 3 years ago

the output would be saved as per the --output location,

ghost commented 3 years ago

:tada: This issue has been resolved in version 2.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: