Difference between revisions of "Function"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
  
== Bash ==
+
== [[Bash shell functions]] ==
* [[Bash]]: <code>[[function]] { }</code>
 
 
 
log() {
 
echo "[$([[date]] --rfc-3339=seconds)]: $*"
 
}
 
 
 
error() {
 
  echo "[$([[date]] --rfc-3339=seconds)]: $*"
 
  exit 1
 
}
 
 
 
my_funtion () {
 
        echo "Executed my_function with $1 parameter"
 
}
 
  
 
== Python ==
 
== Python ==
Line 25: Line 11:
 
* <code>[[.bash_profile]]</code>
 
* <code>[[.bash_profile]]</code>
 
* [[Terraform functions]]
 
* [[Terraform functions]]
 +
* [[Helm functions]]
 +
* [[aws lambda]]
 +
* [[Cloudformation functions]]
 +
* [[GCF]]
 +
* [[return]]
  
 
== See also ==
 
== See also ==

Latest revision as of 17:39, 31 January 2023

Advertising: