• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / mender-server / 1495380963

14 Oct 2024 03:35PM UTC coverage: 70.373% (-2.5%) from 72.904%
1495380963

Pull #101

gitlab-ci

mineralsfree
feat: tenant list added

Ticket: MEN-7568
Changelog: None

Signed-off-by: Mikita Pilinka <mikita.pilinka@northern.tech>
Pull Request #101: feat: tenant list added

4406 of 6391 branches covered (68.94%)

Branch coverage included in aggregate %.

88 of 183 new or added lines in 10 files covered. (48.09%)

2623 existing lines in 65 files now uncovered.

36673 of 51982 relevant lines covered (70.55%)

31.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/backend/services/create-artifact-worker/cmd/root.go
1
// Copyright 2023 Northern.tech AS
2
//
3
//        Licensed under the Apache License, Version 2.0 (the "License");
4
//        you may not use this file except in compliance with the License.
5
//        You may obtain a copy of the License at
6
//
7
//            http://www.apache.org/licenses/LICENSE-2.0
8
//
9
//        Unless required by applicable law or agreed to in writing, software
10
//        distributed under the License is distributed on an "AS IS" BASIS,
11
//        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
//        See the License for the specific language governing permissions and
13
//        limitations under the License.
14

15
package cmd
16

17
import (
18
        "os"
19

20
        "github.com/spf13/cobra"
21
        "github.com/spf13/viper"
22

23
        "github.com/mendersoftware/mender-server/services/create-artifact-worker/config"
24
        mlog "github.com/mendersoftware/mender-server/services/create-artifact-worker/log"
25
)
26

27
// nolint:lll
28
var rootCmd = &cobra.Command{
29
        Use:   "create-artifact",
30
        Short: "Artifact generator CLI.",
31
        Long: `
32
Supports the following env vars:
33

34

35
        CREATE_ARTIFACT_VERBOSE          enable verbose logging (default: false).
36
        CREATE_ARTIFACT_WORKDIR          Working directory where the single-file-generator is executed.
37
        CREATE_ARTIFACT_SKIPVERIFY       Skip TLS hostname verification.
38
        CREATE_ARTIFACT_DEPLOYMENTS_URL  URL to the deployments service (default: "http://mender-deployments:8080").
39
`,
40
}
41

UNCOV
42
func Execute() {
×
UNCOV
43
        if err := rootCmd.Execute(); err != nil {
×
44
                mlog.Error(err.Error())
×
45
                os.Exit(1)
×
46
        }
×
47
}
48

UNCOV
49
func init() {
×
UNCOV
50
        rootCmd.AddCommand(singleFileCmd)
×
UNCOV
51

×
UNCOV
52
        config.Init()
×
UNCOV
53
        mlog.Init(viper.GetBool(config.CfgVerbose))
×
UNCOV
54
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc