Skip to content

Commit

Permalink
Adding comments to the TS sketch analyzer template (#79)
Browse files Browse the repository at this point in the history
* Making minor changes to the TS sketch analyzer template.

* updating docs
  • Loading branch information
kiddinn authored Mar 11, 2020
1 parent 1b159eb commit cbcede4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions docs/sources/user/Setting-Up-Virtualenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,25 @@ To deactivate the virtualenv run:
$ deactivate
```

## Configuring Git Client

Before submitting code to the project, make sure that you have created a fork of
the l2tscaffolder project, and check out your personal fork:

```
$ git clone https://github.com/USERNAME/l2tscaffolder.git
```

Add the upstream repo:

```
$ git remote add upstream https://github.com/log2timeline/l2tscaffolder.git
```

And then you can create a feature branch to work on.

```
$ git checkout -b my_feature
```


7 changes: 6 additions & 1 deletion l2tscaffolder/templates/ts_sketch_analyzer.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class {{ class_name }}SketchPlugin(interface.BaseSketchAnalyzer):
# sketch.get_all_indices()
# (If you add a view, please make sure the analyzer has results before
# adding the view.)
# sketch.add_view(
# view = sketch.add_view(
# view_name=name, analyzer_name=self.NAME,
# query_string=query_string, query_filter={})
# event.add_attributes({'foo': 'bar'})
Expand All @@ -62,6 +62,11 @@ class {{ class_name }}SketchPlugin(interface.BaseSketchAnalyzer):
# event.add_human_readable('human readable text', self.NAME)
# Remember you'll need to add event.commit() once all changes to the
# event have been completed.
# You can also add a story.
# story = self.sketch.add_story(title='Story from analyzer')
# story.add_text('## This is a markdown title')
# story.add_view(view)
# story.add_text('This is another paragraph')
for event in events:
pass

Expand Down

0 comments on commit cbcede4

Please sign in to comment.