mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/find-in-zeekpath'
* origin/topic/awelzel/find-in-zeekpath: NEWS: Mention can_load() and find_in_zeekpath() utils: Introduce packages.zeek with can_load() helper zeek.bif: Add find_in_zeekpath() helper
This commit is contained in:
commit
77d57fccfd
12 changed files with 171 additions and 0 deletions
9
NEWS
9
NEWS
|
@ -18,6 +18,15 @@ New Functionality
|
|||
delete v;
|
||||
assert |v| == 0;
|
||||
|
||||
- A new helper function ``can_load()`` backed by a new bif ``find_in_zeekpath()``
|
||||
was added to determine if a non-relative ``@load`` directive might work. This
|
||||
can be used to guard ``@load`` directives when script packages may or may not
|
||||
be installed.
|
||||
|
||||
@if ( can_load("my-package") )
|
||||
@load my-package
|
||||
@endif
|
||||
|
||||
Changed Functionality
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue