chef sample app (#16731)

* new: chef app is a configurable application that processes zap files during the build process

Change-Id: Ia6aeba2d5587e09074defcd34dc5028288d74a90

* fix: esp32 functional on master on 28/mar/2021

Change-Id: I33f572f313dc7be91e208b074fe6ba6c7ab9da31

* chg: removed old zap files that need to be updated

Change-Id: Ibbe26ad39ba69d251fd4ef956632eb1aac9dfdf8

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

* Restyled by prettier-markdown

* Restyled by autopep8

* fix: init server on scheduled task

Change-Id: If7c287ea7e9632fb8b4a49e8e4c82af4002cf4e4

* fix: excluded unsued context from task call

Change-Id: I8a353828804b2a203d336e47edbe58ce7d62163a

* chg: fixes to paths in README file

Change-Id: I252594388ec759c84525ea9090c153bdd7f80d3f

* fix: update to zap regen script to ignore chef sample app

Change-Id: Ia17baae1a7cca206fd1854928f1b56ca05c0b9e7

* Update wordlist: add new work (flags gzbf) and sort|unique the word list

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Andrei Litvin <andy314@gmail.com>
diff --git a/examples/chef/linux/main.cpp b/examples/chef/linux/main.cpp
new file mode 100644
index 0000000..0335bbb
--- /dev/null
+++ b/examples/chef/linux/main.cpp
@@ -0,0 +1,60 @@
+/*
+ *
+ *    Copyright (c) 2020 Project CHIP Authors
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+
+#include <lib/shell/Engine.h>
+
+#include <lib/core/CHIPCore.h>
+#include <lib/support/Base64.h>
+#include <lib/support/CHIPArgParser.hpp>
+#include <lib/support/CodeUtils.h>
+#include <lib/support/logging/CHIPLogging.h>
+
+#include <ChipShellCollection.h>
+#include <lib/support/CHIPMem.h>
+#include <platform/CHIPDeviceLayer.h>
+
+using namespace chip;
+using namespace chip::Shell;
+
+int main()
+{
+    chip::Platform::MemoryInit();
+    chip::DeviceLayer::PlatformMgr().InitChipStack();
+    chip::DeviceLayer::PlatformMgr().StartEventLoopTask();
+#if CHIP_DEVICE_CONFIG_ENABLE_WPA
+    chip::DeviceLayer::ConnectivityManagerImpl().StartWiFiManagement();
+#endif
+
+    const int rc = Engine::Root().Init();
+
+    if (rc != 0)
+    {
+        ChipLogError(Shell, "Streamer initialization failed: %d", rc);
+        return rc;
+    }
+
+    cmd_misc_init();
+    cmd_otcli_init();
+    cmd_ping_init();
+    cmd_send_init();
+#if CHIP_SHELL_ENABLE_CMD_SERVER
+    cmd_app_server_init();
+#endif
+
+    Engine::Root().RunMainLoop();
+    return 0;
+}