You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: completions.rb
    path of file: ./repos/bashly/lib/bashly/concerns
    
    the code of the file until where you have to start completion: require 'completely'

module Bashly
  # This is a `Command` and `Flag` concern responsible for providing bash
  # c
    
      def completion_data(command_full_name)
        comps = allowed || completions
        return {} unless comps

        aliases.to_h do |name|
          prefix = command_full_name
          prefix = "#{prefix}*" unless prefix.end_with? '*'
          ["#{prefix}#{name}",  comps]
        end
      end