feat: reorganize examples and add signature support to JobBuilder
- Reorganized examples into osiris/, sal/, and utils/ folders - Moved hardcoded scripts to separate .rhai files - Added signature() method to JobBuilder for job signing - Updated OSIRIS context to use block_in_place instead of runtime - Removed runtime field from OsirisContext - Added typed save() methods for Note and Event objects - Updated all examples to use new structure and APIs
This commit is contained in:
		
							
								
								
									
										13
									
								
								examples/sal/scripts/process/run_log.rhai
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								examples/sal/scripts/process/run_log.rhai
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
print("Running a command using run().log().execute()...");
 | 
			
		||||
 | 
			
		||||
// The .log() method will print the command string to the console before execution.
 | 
			
		||||
// This is useful for debugging or tracing which commands are being run.
 | 
			
		||||
let result = run("echo This command is logged").log().execute();
 | 
			
		||||
 | 
			
		||||
print(`Command finished.`);
 | 
			
		||||
print(`Success: ${result.success}`);
 | 
			
		||||
print(`Exit Code: ${result.code}`);
 | 
			
		||||
print(`Stdout:\n${result.stdout}`);
 | 
			
		||||
print(`Stderr:\n${result.stderr}`);
 | 
			
		||||
 | 
			
		||||
print("run().log() example finished.");
 | 
			
		||||
		Reference in New Issue
	
	Block a user